commit | 2d879f524332153f258978b02ab987c8c8ec4a2b | [log] [tgz] |
---|---|---|
author | Volker Ruppert <info@vruppert.de> | Sun Feb 24 08:18:42 2008 +0000 |
committer | Volker Ruppert <info@vruppert.de> | Sun Feb 24 08:18:42 2008 +0000 |
tree | 2bfe65d4ceee69958453155afe51e08cb8613752 | |
parent | 458e003b4f887166a0d66ae48c78cce1243ddac7 [diff] |
- in LFB modes the number of banks must be set to 1
diff --git a/vbe.c b/vbe.c index cab6c79..cbe29d4 100644 --- a/vbe.c +++ b/vbe.c
@@ -902,6 +902,9 @@ #endif memsetb(ss, &info, 0, sizeof(ModeInfoBlock)); memcpyb(ss, &info, 0xc000, &(cur_info->info), sizeof(ModeInfoBlockCompact)); + if (using_lfb) { + info.NumberOfBanks = 1; + } if (info.WinAAttributes & VBE_WINDOW_ATTRIBUTE_RELOCATABLE) { info.WinFuncPtr = 0xC0000000UL; *(Bit16u *)&(info.WinFuncPtr) = (Bit16u)(dispi_set_bank_farcall);