all repos — mgba @ b597d5197b46e033760c9c1ecc96f075558ec067

mGBA Game Boy Advance Emulator

SDL: Fix vsync on Pandora
Jeffrey Pfau jeffrey@endrift.com
Mon, 12 Oct 2015 00:00:16 -0700
commit

b597d5197b46e033760c9c1ecc96f075558ec067

parent

808855f37737df917ab86d8a8afbeec0b7913aa4

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/platform/sdl/pandora-sdl.csrc/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];