make vga_clear() only if vga is enabled

This commit is contained in:
Laurent Vivier 2007-09-18 22:35:14 +00:00
parent c7d9742b8a
commit 600f012138

View File

@ -563,10 +563,12 @@ vga_init(char *mode)
vga.charset = CHARSET_B;
vga_cursor(0);
vga_clear();
if (strcmp(mode, "none") != 0)
{
vga.enabled = 1;
vga_clear();
}
return 0;
}