GBA: Fix endianness issues in renderer proxy
Vicki Pfau vi@endrift.com
Fri, 14 Aug 2020 21:31:32 -0700
2 files changed,
3 insertions(+),
2 deletions(-)
M
CHANGES
→
CHANGES
@@ -40,6 +40,7 @@ - Debugger: Don't skip undefined instructions when debugger attached
- FFmpeg: Fix some small memory leaks - FFmpeg: Fix encoding of time base - GBA: Disable more checks when loading GS save with checks disabled (fixes mgba.io/i/1851) + - GBA: Fix endianness issues in renderer proxy - Qt: Force OpenGL paint engine creation thread (fixes mgba.io/i/1642) - Qt: Fix static compilation in MinGW (fixes mgba.io/i/1769) - Qt: Fix a race condition in the frame inspector
M
src/gba/extra/proxy.c
→
src/gba/extra/proxy.c
@@ -178,13 +178,13 @@ proxyRenderer->backend->writeVideoRegister(proxyRenderer->backend, item->address, item->value);
break; case DIRTY_PALETTE: if (item->address < SIZE_PALETTE_RAM) { - logger->palette[item->address >> 1] = item->value; + STORE_16LE(item->value, item->address, logger->palette); proxyRenderer->backend->writePalette(proxyRenderer->backend, item->address, item->value); } break; case DIRTY_OAM: if (item->address < SIZE_OAM) { - logger->oam[item->address] = item->value; + STORE_16LE(item->value, item->address << 1, logger->oam); proxyRenderer->backend->writeOAM(proxyRenderer->backend, item->address); } break;