GBA Video: Fix invalid read in mode 4 mosaic

This commit is contained in:
Vicki Pfau 2020-06-28 15:42:10 -07:00
parent b68c393223
commit 8a7f8c67fc
2 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ Emulation fixes:
- GBA SIO: Fix copying Normal mode transfer values
- GBA Video: Latch scanline at end of Hblank (fixes mgba.io/i/1319)
- GBA Video: Fix Hblank timing
- GBA Video: Fix invalid read in mode 4 mosaic
- SM83: Emulate HALT bug
Other fixes:
- All: Improve export headers (fixes mgba.io/i/1738)

View File

@ -128,7 +128,7 @@ void GBAVideoSoftwareRendererDrawBackgroundMode3(struct GBAVideoSoftwareRenderer
void GBAVideoSoftwareRendererDrawBackgroundMode4(struct GBAVideoSoftwareRenderer* renderer, struct GBAVideoSoftwareBackground* background, int inY) {
BACKGROUND_BITMAP_INIT;
uint16_t color = renderer->normalPalette[0];
uint16_t color = 0;
uint32_t offset = 0;
if (GBARegisterDISPCNTIsFrameSelect(renderer->dispcnt)) {
offset = 0xA000;