summaryrefslogtreecommitdiff
path: root/src/drivers/video/vga.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-06-16 19:36:10 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-06-16 19:36:10 +0200
commit0061eeb77f73a7832c4c72aba8dd56dc91743171 (patch)
tree4387e1ea40cd1e804cb077ddbabc7509cd26f530 /src/drivers/video/vga.c
parentdd7cbebcb41381fdb87e5c8e4d9d988337919c9c (diff)
downloadabaos-0061eeb77f73a7832c4c72aba8dd56dc91743171.tar.gz
abaos-0061eeb77f73a7832c4c72aba8dd56dc91743171.tar.bz2
playing with VGA font distance and characters bei being on the head or mirrored
Diffstat (limited to 'src/drivers/video/vga.c')
-rw-r--r--src/drivers/video/vga.c4
1 files changed, 2 insertions, 2 deletions
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 );
}
}
}