ugh this still takes the wrong display blergh

This commit is contained in:
Alug committed 2024-03-06 07:59:31 +01:00
1 parent 875adb17b1
commit 298b4d23e8
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -1956,8 +1956,7 @@ static UINT32 VID_GetRefreshRate(void)
INT32 VID_SetMode(INT32 modeNum)
{
int index = SDL_GetWindowDisplayIndex(window);
SDL_DisplayMode balls;
//SDL_DisplayMode balls;
SDLdoUngrabMouse();
vid.recalc = 1;
@@ -1995,8 +1994,9 @@ INT32 VID_SetMode(INT32 modeNum)
}
//Impl_SetWindowName("SRB2Kart "VERSIONSTRING);
if (SDL_GetCurrentDisplayMode(index, &balls) == 0)
/*if (SDL_GetWindowDisplayMode(window, &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 +2004,7 @@ INT32 VID_SetMode(INT32 modeNum)
}
else
downsample = false;
}
}*/
SDLSetMode(vid.width, vid.height, USE_FULLSCREEN);
Impl_VideoSetupBuffer();
+1 -1
View File
@@ -183,7 +183,7 @@ boolean OglSdlSurface(INT32 w, INT32 h)
RenderToFramebuffer = FrameBufferEnabled;
GLFramebuffer_Disable();
if (RenderToFramebuffer && downsample)//uuuuuuuuhuhuuhuhhuhuuh well changing resolutions can break this thing
if (RenderToFramebuffer && downsample)
GLFramebuffer_Enable();
HWR_Startup();