GB Video: Fix windows shifting down by one pixel when rewinding

This commit is contained in:
Douglas Christman 2018-03-31 17:59:53 +08:00 committed by Vicki Pfau
parent 29fc9591dc
commit ddb2b58e13
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}