From 1119a788ef40d0e1a17f583cce890f4bdd41a813 Mon Sep 17 00:00:00 2001 From: zeromus Date: Fri, 3 Jul 2009 02:27:53 +0000 Subject: [PATCH] fix a bug in vram mapping diagnostics printing --- desmume/src/MMU.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/MMU.cpp b/desmume/src/MMU.cpp index 14460f4d4..1787056f1 100644 --- a/desmume/src/MMU.cpp +++ b/desmume/src/MMU.cpp @@ -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);