GBA Video: Clear window offset on reset (fixes #2471, fixes #2500)

This commit is contained in:
Vicki Pfau 2022-05-21 17:06:49 -07:00
parent 87738ba8f3
commit 86b032dac7
1 changed files with 5 additions and 0 deletions

View File

@ -934,6 +934,11 @@ void GBAVideoGLRendererReset(struct GBAVideoRenderer* renderer) {
bg->offsetY = 0;
}
glRenderer->winN[0].offsetX = 0;
glRenderer->winN[0].offsetY = 0;
glRenderer->winN[1].offsetX = 0;
glRenderer->winN[1].offsetY = 0;
for (i = 0; i < 512; ++i) {
int r = M_R5(glRenderer->d.palette[i]);
int g = M_G5(glRenderer->d.palette[i]) << 1;