From bf514eebfe3084718292ae7b799b7b5d0748f0bc Mon Sep 17 00:00:00 2001 From: Patryk Obara Date: Sat, 4 Apr 2020 10:58:04 +0200 Subject: [PATCH] Make HandleVideoResize a static function --- src/gui/sdlmain.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index 316d7e2e..be988a2e 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -2163,7 +2163,7 @@ bool GFX_IsFullscreen(void) { #define DB_POLLSKIP 1 #endif -void GFX_HandleVideoResize(int width, int height) +static void HandleVideoResize(int width, int height) { /* Maybe a screen rotation has just occurred, so we simply resize. There may be a different cause for a forced resized, though. */ @@ -2224,8 +2224,9 @@ void GFX_Events() { GFX_ResetScreen(); continue; case SDL_WINDOWEVENT_RESIZED: - GFX_HandleVideoResize(event.window.data1, event.window.data2); - continue; + HandleVideoResize(event.window.data1, + event.window.data2); + continue; /* * EXPOSED indicates that the window needs to be redrawn. * Note that on Windows/Linux-X11/Wayland/macOS, the EXPOSED event