From 33c6dba5af170ae47c52fe433efdffc394d608f4 Mon Sep 17 00:00:00 2001 From: toaster Date: Wed, 26 Oct 2022 20:53:16 +0100 Subject: [PATCH] Repair bad manual cherrypick of vsync repair --- src/sdl/i_video.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 7122c4df..30a88737 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -101,6 +101,8 @@ rendermode_t rendermode = render_none; boolean highcolor = false; +static void Impl_SetVsync(void); + // synchronize page flipping with screen refresh consvar_t cv_vidwait = {"vid_wait", "Off", CV_SAVE|CV_CALL|CV_NOINIT, CV_OnOff, Impl_SetVsync, 0, NULL, NULL, 0, 0, NULL}; static consvar_t cv_stretch = {"stretch", "Off", CV_SAVE|CV_NOSHOWHELP, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL}; @@ -2137,3 +2139,5 @@ static void Impl_SetVsync(void) if (renderer) SDL_RenderSetVSync(renderer, cv_vidwait.value); #endif +} +#endif