all repos — mgba @ a651a91aa15d0ba99dc97eb84685221146cc1c03

mGBA Game Boy Advance Emulator

GBA Video: Fix second frame mode 5
Jeffrey Pfau jeffrey@endrift.com
Sat, 09 May 2015 17:28:13 -0700
commit

a651a91aa15d0ba99dc97eb84685221146cc1c03

parent

37f5058de01345a6f0efbf5cb72c8d0c3643f12d

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

jump to
M CHANGESCHANGES

@@ -53,6 +53,7 @@ - GBA BIOS: Initialize a variable that may be uninitialized in very rare cases

- ARM7: Fix ARM multiply instructions when PC is a destination register - 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 Video: Fix second frame mode 5 Misc: - Qt: Show multiplayer numbers in window title - Qt: Handle saving input settings better
M src/gba/renderers/video-software.csrc/gba/renderers/video-software.c

@@ -1616,7 +1616,7 @@ for (outX = renderer->start, pixel = &renderer->row[outX]; outX < renderer->end; ++outX, ++pixel) {

BACKGROUND_BITMAP_ITERATE(160, 128); 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 unsigned color32 = 0; color32 |= (color << 9) & 0xF80000;