diff --git a/vga.c b/vga.c index 187f56f..9589d4f 100644 --- a/vga.c +++ b/vga.c @@ -8,6 +8,7 @@ unsigned int cursor_loc = CURSOR_HOME; unsigned char fgcolor; unsigned char bgcolor; +unsigned short blank; static unsigned char vga_entry_color(enum vga_color fg, enum vga_color bg) { return fg | bg << 4; @@ -26,17 +27,16 @@ void vga_set_color(enum vga_color fg, enum vga_color bg) { } void vga_init(enum vga_color fg, enum vga_color bg) { vga_set_color(fg, bg); + blank = vga_blank_entry(); cls(); } void cls(void) { - unsigned short blank = vga_blank_entry(); int i; for (i=0; i