From 6fcea2f98e83d761632748e9e4b4940a963ce255 Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 18 May 2024 23:52:05 +0200 Subject: [PATCH] RefreshOGLSDLSurface to make it a little more clearer this is ogl only --- src/hardware/hw_main.c | 2 +- src/i_video.h | 2 +- src/sdl/i_video.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index b52612582..53f0e8786 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -223,7 +223,7 @@ static void CV_grframebuffer_OnChange(void) ONLY_IF_GL_LOADED HWD.pfnSetSpecialState(HWD_SET_FRAMEBUFFER, cv_grframebuffer.value); I_DownSample(); - RefreshSDLSurface(); + RefreshOGLSDLSurface(); } #endif diff --git a/src/i_video.h b/src/i_video.h index c39186d54..708fde03c 100644 --- a/src/i_video.h +++ b/src/i_video.h @@ -140,7 +140,7 @@ UINT32 I_GetRefreshRate(void); boolean I_UseNativeKeyboard(void); #ifdef USE_FBO_OGL -void RefreshSDLSurface(void); +void RefreshOGLSDLSurface(void); void I_DownSample(void); extern boolean downsample; #endif diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index bbeeef03f..f90f5bb18 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -218,7 +218,7 @@ static void Impl_SetWindowIcon(void); #ifdef USE_FBO_OGL boolean downsample = false; -void RefreshSDLSurface(void) +void RefreshOGLSDLSurface(void) { if (rendermode == render_opengl) OglSdlSurface(vid.width, vid.height); @@ -763,7 +763,7 @@ void I_DownSample(void) if ((vid.width > curmode.w) || (vid.height > curmode.h)) //check if current resolution is higher than current display resolution { downsample = true; - RefreshSDLSurface(); + RefreshOGLSDLSurface(); } else downsample = false; // its not so no need to do crap