diff options
author | Volker Ruppert <info@vruppert.de> | 2008-02-24 08:18:42 +0000 |
---|---|---|
committer | Volker Ruppert <info@vruppert.de> | 2008-02-24 08:18:42 +0000 |
commit | 2d879f524332153f258978b02ab987c8c8ec4a2b (patch) | |
tree | 2bfe65d4ceee69958453155afe51e08cb8613752 | |
parent | 458e003b4f887166a0d66ae48c78cce1243ddac7 (diff) |
- in LFB modes the number of banks must be set to 1
-rw-r--r-- | vbe.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -902,6 +902,9 @@ Bit16u *AX;Bit16u CX; Bit16u ES;Bit16u DI; #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); |