GBA: Fix endianness issues in renderer proxy

This commit is contained in:
Vicki Pfau 2020-08-14 21:31:32 -07:00
parent 1ad033d925
commit 1d58985d25
2 changed files with 3 additions and 2 deletions

View File

@ -11,6 +11,7 @@ Other fixes:
- Core: Fix reported ROM size when a fixed buffer size is used
- Core: Fix memory leak loading ELF files
- GBA: Disable more checks when loading GS save with checks disabled (fixes mgba.io/i/1851)
- GBA: Fix endianness issues in renderer proxy
- GBA Core: Fix memory leak when loading symbols
- Qt: Add dummy English translation file (fixes mgba.io/i/1469)
- mGUI: Fix closing down a game if an exit is signalled

View File

@ -178,13 +178,13 @@ static bool _parsePacket(struct mVideoLogger* logger, const struct mVideoLoggerD
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;