Do not unnecessarily clear display memory when switching modes.
MFC after: 3 days
This commit is contained in:
parent
31f7a2032e
commit
b1a499f3d8
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user