GBA Video: Fix palette deserialization on big endian
Jeffrey Pfau jeffrey@endrift.com
Mon, 19 Sep 2016 10:20:37 -0700
1 files changed,
3 insertions(+),
1 deletions(-)
M
src/gba/renderers/video-software.c
→
src/gba/renderers/video-software.c
@@ -93,7 +93,9 @@ softwareRenderer->target2Obj = 0;
softwareRenderer->target2Bd = 0; softwareRenderer->blendEffect = BLEND_NONE; for (i = 0; i < 1024; i += 2) { - GBAVideoSoftwareRendererWritePalette(renderer, i, softwareRenderer->d.palette[i >> 1]); + uint16_t entry; + LOAD_16(entry, i, softwareRenderer->d.palette); + GBAVideoSoftwareRendererWritePalette(renderer, i, entry); } _updatePalettes(softwareRenderer);