From 4f9808bce0d4f3a5e6ff3ba5880749f4d06dd4ba Mon Sep 17 00:00:00 2001 From: Lars Krönner Date: Mon, 28 Oct 2019 13:45:15 +0100 Subject: Fixed second inversion --- src/kernel/graphics/vesa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/kernel/graphics/vesa.c b/src/kernel/graphics/vesa.c index a74050f..cc46a6b 100644 --- a/src/kernel/graphics/vesa.c +++ b/src/kernel/graphics/vesa.c @@ -258,7 +258,7 @@ void vesa_clear() { void vesa_draw_char(char ch) { if (ch >= ' ') { int pos = terminal_x * vbe_bpl + terminal_y * vbe_pitch; - int mask[8] = {1, 2, 4, 8, 16, 32, 64, 128}; + int mask[8] = {128, 64, 32, 16, 8, 4, 2, 1}; unsigned char *glyph = font[ch - 32]; char *draw = (char *) &fb[pos]; -- cgit v1.2.3