diff --git a/CHANGES b/CHANGES index e32b2293f..8374dc510 100644 --- a/CHANGES +++ b/CHANGES @@ -23,6 +23,7 @@ Emulation fixes: - 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 diff --git a/cinema/gba/bg/ff6-midframe-update/baseline_0000.png b/cinema/gba/bg/ff6-midframe-update/baseline_0000.png new file mode 100644 index 000000000..035c9c7f0 Binary files /dev/null and b/cinema/gba/bg/ff6-midframe-update/baseline_0000.png differ diff --git a/cinema/gba/bg/ff6-midframe-update/baseline_0001.png b/cinema/gba/bg/ff6-midframe-update/baseline_0001.png new file mode 100644 index 000000000..035c9c7f0 Binary files /dev/null and b/cinema/gba/bg/ff6-midframe-update/baseline_0001.png differ diff --git a/cinema/gba/bg/ff6-midframe-update/baseline_0002.png b/cinema/gba/bg/ff6-midframe-update/baseline_0002.png new file mode 100644 index 000000000..4890f33f3 Binary files /dev/null and b/cinema/gba/bg/ff6-midframe-update/baseline_0002.png differ diff --git a/cinema/gba/bg/ff6-midframe-update/baseline_0003.png b/cinema/gba/bg/ff6-midframe-update/baseline_0003.png new file mode 100644 index 000000000..4890f33f3 Binary files /dev/null and b/cinema/gba/bg/ff6-midframe-update/baseline_0003.png differ diff --git a/cinema/gba/bg/ff6-midframe-update/baseline_0004.png b/cinema/gba/bg/ff6-midframe-update/baseline_0004.png new file mode 100644 index 000000000..25057d2ce Binary files /dev/null and b/cinema/gba/bg/ff6-midframe-update/baseline_0004.png differ diff --git a/cinema/gba/bg/ff6-midframe-update/baseline_0005.png b/cinema/gba/bg/ff6-midframe-update/baseline_0005.png new file mode 100644 index 000000000..25057d2ce Binary files /dev/null and b/cinema/gba/bg/ff6-midframe-update/baseline_0005.png differ diff --git a/cinema/gba/bg/ff6-midframe-update/baseline_0006.png b/cinema/gba/bg/ff6-midframe-update/baseline_0006.png new file mode 100644 index 000000000..1d9cd0aca Binary files /dev/null and b/cinema/gba/bg/ff6-midframe-update/baseline_0006.png differ diff --git a/cinema/gba/bg/ff6-midframe-update/baseline_0007.png b/cinema/gba/bg/ff6-midframe-update/baseline_0007.png new file mode 100644 index 000000000..1d9cd0aca Binary files /dev/null and b/cinema/gba/bg/ff6-midframe-update/baseline_0007.png differ diff --git a/cinema/gba/bg/ff6-midframe-update/baseline_0008.png b/cinema/gba/bg/ff6-midframe-update/baseline_0008.png new file mode 100644 index 000000000..4168cd14b Binary files /dev/null and b/cinema/gba/bg/ff6-midframe-update/baseline_0008.png differ diff --git a/cinema/gba/bg/ff6-midframe-update/baseline_0009.png b/cinema/gba/bg/ff6-midframe-update/baseline_0009.png new file mode 100644 index 000000000..4168cd14b Binary files /dev/null and b/cinema/gba/bg/ff6-midframe-update/baseline_0009.png differ diff --git a/cinema/gba/bg/ff6-midframe-update/baseline_0010.png b/cinema/gba/bg/ff6-midframe-update/baseline_0010.png new file mode 100644 index 000000000..da6050235 Binary files /dev/null and b/cinema/gba/bg/ff6-midframe-update/baseline_0010.png differ diff --git a/cinema/gba/bg/ff6-midframe-update/baseline_0011.png b/cinema/gba/bg/ff6-midframe-update/baseline_0011.png new file mode 100644 index 000000000..da6050235 Binary files /dev/null and b/cinema/gba/bg/ff6-midframe-update/baseline_0011.png differ diff --git a/cinema/gba/bg/ff6-midframe-update/baseline_0012.png b/cinema/gba/bg/ff6-midframe-update/baseline_0012.png new file mode 100644 index 000000000..5f6a0f3fc Binary files /dev/null and b/cinema/gba/bg/ff6-midframe-update/baseline_0012.png differ diff --git a/cinema/gba/bg/ff6-midframe-update/baseline_0013.png b/cinema/gba/bg/ff6-midframe-update/baseline_0013.png new file mode 100644 index 000000000..5f6a0f3fc Binary files /dev/null and b/cinema/gba/bg/ff6-midframe-update/baseline_0013.png differ diff --git a/cinema/gba/bg/ff6-midframe-update/baseline_0014.png b/cinema/gba/bg/ff6-midframe-update/baseline_0014.png new file mode 100644 index 000000000..6e74fa126 Binary files /dev/null and b/cinema/gba/bg/ff6-midframe-update/baseline_0014.png differ diff --git a/cinema/gba/bg/ff6-midframe-update/baseline_0015.png b/cinema/gba/bg/ff6-midframe-update/baseline_0015.png new file mode 100644 index 000000000..6e74fa126 Binary files /dev/null and b/cinema/gba/bg/ff6-midframe-update/baseline_0015.png differ diff --git a/cinema/gba/bg/ff6-midframe-update/test.mvl b/cinema/gba/bg/ff6-midframe-update/test.mvl new file mode 100644 index 000000000..9bb96c645 Binary files /dev/null and b/cinema/gba/bg/ff6-midframe-update/test.mvl differ diff --git a/src/gba/renderers/video-software.c b/src/gba/renderers/video-software.c index de0a2279b..20783292d 100644 --- a/src/gba/renderers/video-software.c +++ b/src/gba/renderers/video-software.c @@ -760,6 +760,7 @@ static void GBAVideoSoftwareRendererWriteBGCNT(struct GBAVideoSoftwareRenderer* 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) {