Clear screen on mode switch

This commit is contained in:
Keith Packard 2002-10-08 21:27:18 +00:00
parent b28a8c6e2a
commit f214cab20b

View File

@ -210,7 +210,7 @@ VbeSetMode (Vm86InfoPtr vi, VbeInfoPtr vbe, int mode, int linear, int direct)
if (code < 0)
return -1;
mode = (mode & 0xffff) | 0x8000;
mode = (mode & 0xffff) &~ 0x8000;
if (linear)
mode |= 0x4000;