Do not unnecessarily clear display memory when switching modes.

MFC after:	3 days
This commit is contained in:
Jung-uk Kim 2012-03-16 19:22:29 +00:00
parent 31f7a2032e
commit b1a499f3d8

View File

@ -1313,7 +1313,7 @@ vesa_set_mode(video_adapter_t *adp, int mode)
if ((info.vi_flags & V_INFO_LINEAR) != 0)
mode |= 0x4000;
if (vesa_bios_set_mode(mode))
if (vesa_bios_set_mode(mode | 0x8000))
return (1);
/* Palette format is reset by the above VBE function call. */