From 4a1523da573bb1fb8daca0051c79f87c8a206904 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 10 Apr 2024 18:15:29 +0200 Subject: [PATCH] Zzz... --- src/i_video.h | 2 -- src/sdl/i_video.c | 12 ------------ 2 files changed, 14 deletions(-) diff --git a/src/i_video.h b/src/i_video.h index 8f9eaae38..76a06be91 100644 --- a/src/i_video.h +++ b/src/i_video.h @@ -140,11 +140,9 @@ UINT32 I_GetRefreshRate(void); boolean I_UseNativeKeyboard(void); #ifdef HWRENDER -#ifdef GL_VERSION_3_0 void RefreshSDLSurface(void); void I_DownSample(void); extern boolean downsample; #endif -#endif #endif diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index f58cfcac7..c415a063a 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -216,14 +216,12 @@ static SDL_bool Impl_CreateWindow(SDL_bool fullscreen); static void Impl_SetWindowIcon(void); #ifdef HWRENDER -#ifdef GL_VERSION_3_0 boolean downsample = false; void RefreshSDLSurface(void) { OglSdlSurface(vid.width, vid.height); } #endif -#endif static void SDLSetMode(INT32 width, INT32 height, SDL_bool fullscreen) { @@ -747,7 +745,6 @@ static INT32 SDLJoyAxis(const Sint16 axis, evtype_t which) } #ifdef HWRENDER -#ifdef GL_VERSION_3_0 void I_DownSample(void) { if (!cv_grframebuffer.value) @@ -773,7 +770,6 @@ void I_DownSample(void) downsample = false; // couldnt get display info so turn the thing off } #endif -#endif static void Impl_HandleWindowEvent(SDL_WindowEvent evt) { @@ -781,9 +777,7 @@ static void Impl_HandleWindowEvent(SDL_WindowEvent evt) static SDL_bool mousefocus = SDL_TRUE; static SDL_bool kbfocus = SDL_TRUE; #ifdef HWRENDER -#ifdef GL_VERSION_3_0 static SDL_bool windowmoved = SDL_FALSE; -#endif #endif switch (evt.event) @@ -805,11 +799,9 @@ static void Impl_HandleWindowEvent(SDL_WindowEvent evt) case SDL_WINDOWEVENT_MAXIMIZED: break; #ifdef HWRENDER -#ifdef GL_VERSION_3_0 case SDL_WINDOWEVENT_MOVED: windowmoved = SDL_TRUE; break; -#endif #endif } @@ -851,13 +843,11 @@ static void Impl_HandleWindowEvent(SDL_WindowEvent evt) } #ifdef HWRENDER -#ifdef GL_VERSION_3_0 if (windowmoved) { I_DownSample(); } #endif -#endif } static void Impl_HandleKeyboardEvent(SDL_KeyboardEvent evt, Uint32 type) @@ -1937,9 +1927,7 @@ INT32 VID_SetMode(INT32 modeNum) //Impl_SetWindowName("SRB2Kart "VERSIONSTRING); #ifdef HWRENDER -#ifdef GL_VERSION_3_0 I_DownSample(); -#endif #endif SDLSetMode(vid.width, vid.height, USE_FULLSCREEN);