mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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:
1 parent
e7ee11ad72
commit
0ff01eebcd
1 file changed
+3
-3
@@ -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);
|
||||
|
||||