diff --git a/src/platform/sdl/pandora-sdl.c b/src/platform/sdl/pandora-sdl.c index c7bf2e8b1..24dc1a493 100644 --- a/src/platform/sdl/pandora-sdl.c +++ b/src/platform/sdl/pandora-sdl.c @@ -92,14 +92,14 @@ void GBASDLRunloop(struct GBAThread* context, struct SDLSoftwareRenderer* render } if (GBASyncWaitFrameStart(&context->sync)) { - int arg = 0; - ioctl(renderer->fb, FBIO_WAITFORVSYNC, &arg); - struct fb_var_screeninfo info; ioctl(renderer->fb, FBIOGET_VSCREENINFO, &info); info.yoffset = VIDEO_VERTICAL_PIXELS * renderer->odd; ioctl(renderer->fb, FBIOPAN_DISPLAY, &info); + int arg = 0; + ioctl(renderer->fb, FBIO_WAITFORVSYNC, &arg); + renderer->odd = !renderer->odd; renderer->d.outputBuffer = renderer->base[renderer->odd]; }