fix a bug in vram mapping diagnostics printing

This commit is contained in:
zeromus 2009-07-03 02:27:53 +00:00
parent 11509592e4
commit 1119a788ef
1 changed files with 2 additions and 2 deletions

View File

@ -675,7 +675,7 @@ static inline void MMU_VRAMmapRefreshBank(const int bank)
switch(ofs) {
case 0:
case 1:
vramConfiguration.banks[bank].purpose = VramConfiguration::ABG;
vramConfiguration.banks[bank].purpose = VramConfiguration::ABGEXTPAL;
ARM9Mem.ExtPal[0][ofs*2] = MMU_vram_physical(vram_bank_info[bank].page_addr);
ARM9Mem.ExtPal[0][ofs*2+1] = ARM9Mem.ExtPal[0][ofs*2] + ADDRESS_STEP_8KB;
break;
@ -686,7 +686,7 @@ static inline void MMU_VRAMmapRefreshBank(const int bank)
}
break;
case 5: //A OBJ extended palette
vramConfiguration.banks[bank].purpose = VramConfiguration::AOBJ;
vramConfiguration.banks[bank].purpose = VramConfiguration::AOBJEXTPAL;
ARM9Mem.ObjExtPal[0][0] = MMU_vram_physical(vram_bank_info[bank].page_addr);
ARM9Mem.ObjExtPal[0][1] = ARM9Mem.ObjExtPal[0][1] + ADDRESS_STEP_8KB;
if(ofs != 0) PROGINFO("Bank %i: MST %i OFS %i\n", mst, ofs);