From ddb2b58e135cc99bc6dd54f857df400463860617 Mon Sep 17 00:00:00 2001 From: Douglas Christman Date: Sat, 31 Mar 2018 17:59:53 +0800 Subject: [PATCH] GB Video: Fix windows shifting down by one pixel when rewinding --- src/gb/renderers/software.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gb/renderers/software.c b/src/gb/renderers/software.c index 8ec3444e3..5b901d235 100644 --- a/src/gb/renderers/software.c +++ b/src/gb/renderers/software.c @@ -90,7 +90,7 @@ static void GBVideoSoftwareRendererUpdateWindow(struct GBVideoSoftwareRenderer* renderer->hasWindow = true; } else { if (!renderer->hasWindow) { - renderer->currentWy = renderer->lastY + 1 - renderer->wy; + renderer->currentWy = renderer->lastY - renderer->wy; } else { renderer->currentWy += renderer->lastY; }