all repos — mgba @ c2893d641e6c18496d1637f8d729ee5f1d3b1b4d

mGBA Game Boy Advance Emulator

GBA Video: Invalidate map cache when modifying BGCNT (fixes #1846)
Vicki Pfau vi@endrift.com
Sat, 08 Aug 2020 18:22:09 -0700
commit

c2893d641e6c18496d1637f8d729ee5f1d3b1b4d

parent

defaeb0d80ebbdfbd3f0135cb36dc56dc35cdab5

M CHANGESCHANGES

@@ -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.csrc/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) {