From 00b1770afab68de19e14b42fe1f03526416b4b3b Mon Sep 17 00:00:00 2001 From: pjht Date: Sun, 10 Feb 2019 14:13:41 -0600 Subject: [PATCH] Fix xy_to_indx in VGA driver --- drivers/i386/vga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i386/vga.c b/drivers/i386/vga.c index c5077d8..4f5a31b 100644 --- a/drivers/i386/vga.c +++ b/drivers/i386/vga.c @@ -1,7 +1,7 @@ #include #include "../vga.h" #include -#define xy_to_indx(x,y) ((x+(y*height))*2) +#define xy_to_indx(x,y) ((x+(y*width))*2) char* screen; int width; int height;