Permalink
Browse files

GB Video: Fix enabling window when LY > WY (fixes #409)

  • Loading branch information...
endrift committed May 20, 2018
1 parent bc88f23 commit ed99f8b9257e407a6b3a1191af4360d221d812e2
View
@@ -32,6 +32,7 @@ Bugfixes:
- GBA Timer: Fix timers sometimes being late (fixes mgba.io/i/1012)
- GBA Hardware: Fix RTC overriding light sensor (fixes mgba.io/i/1069)
- GBA Savedata: Fix savedata modified time updating when read-only
+ - GB Video: Fix enabling window when LY > WY (fixes mgba.io/i/409)
Misc:
- GBA Timer: Use global cycles for timers
- GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -229,7 +229,11 @@ static void GBVideoSoftwareRendererUpdateWindow(struct GBVideoSoftwareRenderer*
renderer->hasWindow = true;
} else {
if (!renderer->hasWindow) {
- renderer->currentWy = renderer->lastY - renderer->wy;
+ if (renderer->lastY > renderer->wy) {
+ renderer->currentWy = GB_VIDEO_VERTICAL_PIXELS;
+ } else {
+ renderer->currentWy = renderer->lastY - renderer->wy;
+ }
} else {
renderer->currentWy += renderer->lastY;
}

0 comments on commit ed99f8b

Please sign in to comment.