From a2d0ea9d119896624a4adca42e4370fb7d3af207 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 6 Mar 2024 08:02:29 +0100 Subject: [PATCH] ill just uhhhhh use main display stuff for now idk --- src/sdl/i_video.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 637dc59a1..9767e3f1f 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -1956,7 +1956,7 @@ static UINT32 VID_GetRefreshRate(void) INT32 VID_SetMode(INT32 modeNum) { - //SDL_DisplayMode balls; + SDL_DisplayMode balls; SDLdoUngrabMouse(); vid.recalc = 1; @@ -1994,9 +1994,8 @@ INT32 VID_SetMode(INT32 modeNum) } //Impl_SetWindowName("SRB2Kart "VERSIONSTRING); - /*if (SDL_GetWindowDisplayMode(window, &balls) == 0) + if (SDL_GetDesktopDisplayMode(0, &balls) == 0) { - CONS_Printf(" Resolution: %dx%d\n", balls.w, balls.h); if (cv_grframebuffer.value && ((vid.width > balls.w) || (vid.height > balls.h))) //framebuffer downsampler thinge { downsample = true; @@ -2004,7 +2003,7 @@ INT32 VID_SetMode(INT32 modeNum) } else downsample = false; - }*/ + } SDLSetMode(vid.width, vid.height, USE_FULLSCREEN); Impl_VideoSetupBuffer();