From 69d47a5e5346d8102813a8ee62cfa8647c27f8a3 Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 17 Feb 2024 09:57:12 +0100 Subject: [PATCH] Revert "fix the dumbass compiler warning" This reverts commit d0b7f6203ccc320cbc85bc0b0e4ecbbb715240ba. --- src/hardware/hw_main.c | 2 +- src/i_video.h | 2 -- src/sdl/i_video.c | 5 ----- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index d3c861559..349161730 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -170,7 +170,7 @@ static void CV_grframebuffer_OnChange(void) { ONLY_IF_GL_LOADED HWD.pfnSetSpecialState(HWD_SET_FRAMEBUFFER, cv_grframebuffer.value); - RefreshSDLSurface(); + OglSdlSurface(vid.width, vid.height); //this is really dumb but it works TODO: fix compiler warning, cant include the proper header file here } static void CV_filtermode_ONChange(void) diff --git a/src/i_video.h b/src/i_video.h index 2f08e4b1f..602522871 100644 --- a/src/i_video.h +++ b/src/i_video.h @@ -137,6 +137,4 @@ void I_EndRead(void); UINT32 I_GetRefreshRate(void); -void RefreshSDLSurface(void); - #endif diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index b6ac9e26a..61f30b436 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -201,11 +201,6 @@ static SDL_bool Impl_CreateWindow(SDL_bool fullscreen); //static void Impl_SetWindowName(const char *title); static void Impl_SetWindowIcon(void); -void RefreshSDLSurface(void) -{ - OglSdlSurface(vid.width, vid.height); -} - static void SDLSetMode(INT32 width, INT32 height, SDL_bool fullscreen) { static SDL_bool wasfullscreen = SDL_FALSE;