GBA Video: Fix second frame mode 5

This commit is contained in:
Jeffrey Pfau 2015-05-09 17:28:13 -07:00
parent 37f5058de0
commit a651a91aa1
2 changed files with 2 additions and 1 deletions

View File

@ -53,6 +53,7 @@ Bugfixes:
- ARM7: Fix ARM multiply instructions when PC is a destination register - ARM7: Fix ARM multiply instructions when PC is a destination register
- SDL: Fix potential build issues when Qt and SDL2 are in use - SDL: Fix potential build issues when Qt and SDL2 are in use
- GBA Memory: Fix jumping to invalid memory when switching from Thumb to ARM - GBA Memory: Fix jumping to invalid memory when switching from Thumb to ARM
- GBA Video: Fix second frame mode 5
Misc: Misc:
- Qt: Show multiplayer numbers in window title - Qt: Show multiplayer numbers in window title
- Qt: Handle saving input settings better - Qt: Handle saving input settings better

View File

@ -1616,7 +1616,7 @@ static void _drawBackgroundMode5(struct GBAVideoSoftwareRenderer* renderer, stru
BACKGROUND_BITMAP_ITERATE(160, 128); BACKGROUND_BITMAP_ITERATE(160, 128);
if (!mosaicWait) { if (!mosaicWait) {
LOAD_16(color, (offset + (localX >> 8) + (localY >> 8) * 160) << 1, renderer->d.vram); LOAD_16(color, offset + (localX >> 8) * 2 + (localY >> 8) * 320, renderer->d.vram);
#ifndef COLOR_16_BIT #ifndef COLOR_16_BIT
unsigned color32 = 0; unsigned color32 = 0;
color32 |= (color << 9) & 0xF80000; color32 |= (color << 9) & 0xF80000;