From 4f037896dbfefa3e9b077f89712f0d852d12ab2a Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 20 Dec 2024 11:27:49 +0100 Subject: [PATCH] oops this is lugstuff only lel --- src/sdl/i_video.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index d1f550621..b07e29463 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -131,7 +131,6 @@ static void Impl_SetVsync(void); static INT32 desktopwidth = 0, desktopheight = 0; static void I_CheckDesktopRes(void); -static void I_ResetFBOSurface(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}; @@ -747,7 +746,7 @@ void I_DownSample(void) if (I_CheckNativeRes() && (downsample == true)) { downsample = false; - I_ResetFBOSurface(); + RefreshOGLSDLSurface(); return; } @@ -764,17 +763,10 @@ void I_DownSample(void) if (needrefresh) { - I_ResetFBOSurface(); + RefreshOGLSDLSurface(); needrefresh = false; } } - -static void I_ResetFBOSurface(void) -{ - InvSupersampleFactorX = (float)(desktopwidth) / vid.width; - InvSupersampleFactorY = (float)(desktopheight) / vid.height; - RefreshOGLSDLSurface(); -} #endif static void Impl_HandleWindowEvent(SDL_WindowEvent evt)