From 0061eeb77f73a7832c4c72aba8dd56dc91743171 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 16 Jun 2017 19:36:10 +0200 Subject: playing with VGA font distance and characters bei being on the head or mirrored --- src/drivers/video/vga.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/drivers') diff --git a/src/drivers/video/vga.c b/src/drivers/video/vga.c index cf1157c..bb73f1e 100644 --- a/src/drivers/video/vga.c +++ b/src/drivers/video/vga.c @@ -312,9 +312,9 @@ void vga_draw_char( vga_t *vga, const unsigned char c, const int x, const int y, for( int xx = 0; xx < vga_font.Width; xx++ ) { for( int yy = 0; yy < vga_font.Height; yy++ ) { if( bmap[yy] & mask[xx] ) { - vga_set_pixel( vga, x + xx, y + yy, foreground ); + vga_set_pixel( vga, x + 10 - xx, y + yy, foreground ); } else { - vga_set_pixel( vga, x + xx, y + yy, background ); + vga_set_pixel( vga, x + 10 - xx, y + yy, background ); } } } -- cgit v1.2.3-54-g00ecf