SDL: Fix vsync on Pandora
Jeffrey Pfau jeffrey@endrift.com
Mon, 12 Oct 2015 00:00:16 -0700
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
src/platform/sdl/pandora-sdl.c
→
src/platform/sdl/pandora-sdl.c
@@ -92,13 +92,13 @@ GBASDLHandleEvent(context, &renderer->player, &event);
} 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];