mirror of https://github.com/mgba-emu/mgba.git
GB Video: Fix windows shifting down by one pixel when rewinding
This commit is contained in:
parent
29fc9591dc
commit
ddb2b58e13
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue