GBA Video: Invalidate map cache when modifying BGCNT (fixes #1846)
Vicki Pfau vi@endrift.com
Sat, 08 Aug 2020 18:22:09 -0700
19 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
CHANGES
→
CHANGES
@@ -23,6 +23,7 @@ - GBA SIO: Fix copying Normal mode transfer values
- GBA SIO: Fix Normal mode being totally broken (fixes mgba.io/i/1800) - GBA Video: Latch scanline at end of Hblank (fixes mgba.io/i/1319) - GBA Video: Fix Hblank timing + - GBA Video: Invalidate map cache when modifying BGCNT (fixes mgba.io/i/1846) - SM83: Emulate HALT bug Other fixes: - 3DS: Redo video sync to be more precise
M
src/gba/renderers/video-software.c
→
src/gba/renderers/video-software.c
@@ -760,6 +760,7 @@ bg->multipalette = GBARegisterBGCNTGet256Color(value);
bg->screenBase = GBARegisterBGCNTGetScreenBase(value) << 11; bg->overflow = GBARegisterBGCNTGetOverflow(value); bg->size = GBARegisterBGCNTGetSize(value); + bg->yCache = -1; } static void GBAVideoSoftwareRendererWriteBGX_LO(struct GBAVideoSoftwareBackground* bg, uint16_t value) {