all repos — mgba @ f127525cac37e48843d77300d81a81e94a9b4fb5

mGBA Game Boy Advance Emulator

GB Video: Fix mode 0 window edge case (fixes #1519)
Vicki Pfau vi@endrift.com
Sun, 08 Sep 2019 18:03:42 -0700
commit

f127525cac37e48843d77300d81a81e94a9b4fb5

parent

a44a8f668f6a54a4b4ee3e5853d504b2708f8458

M CHANGESCHANGES

@@ -39,6 +39,7 @@ - GBA Memory: Fix STM/LDM to invalid VRAM

- GB: Fix savedata initialization (fixes mgba.io/i/1473, mgba.io/i/1478) - GB Memory: Better emulate 0xFEA0 region on DMG, MGB and AGB - GB Printer: Reset printer buffer index after printing + - GB Video: Fix mode 0 window edge case (fixes mgba.io/i/1519) Other fixes: - Qt: Fix some Qt display driver race conditions - Core: Improved lockstep driver reliability (Le Hoang Quyen)
M src/gb/renderers/software.csrc/gb/renderers/software.c

@@ -224,6 +224,9 @@ static void GBVideoSoftwareRendererUpdateWindow(struct GBVideoSoftwareRenderer* renderer, bool before, bool after, uint8_t oldWy) {

if (renderer->lastY >= GB_VIDEO_VERTICAL_PIXELS || !(after || before)) { return; } + if (!renderer->hasWindow && renderer->lastX == GB_VIDEO_HORIZONTAL_PIXELS) { + return; + } if (renderer->lastY >= oldWy) { if (!after) { renderer->currentWy -= renderer->lastY;