all repos — mgba @ f00afe0758a14db76f847aa6fa9108c0291dc4ab

mGBA Game Boy Advance Emulator

GBA: Fix endianness issues in renderer proxy
Vicki Pfau vi@endrift.com
Fri, 14 Aug 2020 21:31:32 -0700
commit

f00afe0758a14db76f847aa6fa9108c0291dc4ab

parent

e27ac1268a3957332d22ca1b670184d64000e42a

2 files changed, 3 insertions(+), 2 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.csrc/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;