all repos — mgba @ 270c09c26e2b37c180fb60ceba094488230e12fd

mGBA Game Boy Advance Emulator

Fix palette pointer in GBALoad8
Jeffrey Pfau jeffrey@endrift.com
Fri, 29 Aug 2014 02:31:15 -0700
commit

270c09c26e2b37c180fb60ceba094488230e12fd

parent

a825c6e4a67a81b609970010622cda3d762e3c30

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/gba/gba-memory.csrc/gba/gba-memory.c

@@ -336,7 +336,7 @@ case REGION_IO:

value = (GBAIORead(gba, address & 0xFFFE) >> ((address & 0x0001) << 3)) & 0xFF; break; case REGION_PALETTE_RAM: - value = ((int8_t*) gba->video.renderer->palette)[address & (SIZE_PALETTE_RAM - 1)]; + value = ((int8_t*) gba->video.palette)[address & (SIZE_PALETTE_RAM - 1)]; break; case REGION_VRAM: value = ((int8_t*) gba->video.renderer->vram)[address & 0x0001FFFF];