vgabios: Make Windows 8 support greater resolutions

Apparently Windows 8 refuse to use any mode if has more than one page.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
This commit is contained in:
Frediano Ziglio committed 2012-05-07 13:39:27 +01:00
1 parent e7ee11ad72
commit 0ff01eebcd
1 file changed
+3 -3
+3 -3
View File
@@ -944,9 +944,9 @@ Bit16u *AX;Bit16u CX; Bit16u ES;Bit16u DI;
(size_64k > totalMemory))
info.ModeAttributes &= ~VBE_MODE_ATTRIBUTE_SUPPORTED;
if (using_lfb) {
info.NumberOfBanks = 1;
}
/* Windows 8 require this to be 1! */
info.NumberOfBanks = 1;
if (info.WinAAttributes & VBE_WINDOW_ATTRIBUTE_RELOCATABLE) {
info.WinFuncPtr = 0xC0000000UL;
*(Bit16u *)&(info.WinFuncPtr) = (Bit16u)(dispi_set_bank_farcall);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.