From 50477dc0284d040fc5566f908241ab94bb608508 Mon Sep 17 00:00:00 2001 From: Joshie Date: Mon, 24 Apr 2023 19:21:21 +0100 Subject: [PATCH] sdlwindow: Gate SDL_GetWindowSizeInPixels behind version check --- src/sdlwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sdlwindow.cpp b/src/sdlwindow.cpp index 3bff096..4c56bf1 100644 --- a/src/sdlwindow.cpp +++ b/src/sdlwindow.cpp @@ -295,7 +295,9 @@ void inputSDLThreadRun( void ) g_nOutputWidthPts = width; g_nOutputHeightPts = height; +#if SDL_VERSION_ATLEAST(2, 26, 0) SDL_GetWindowSizeInPixels( g_SDLWindow, &width, &height ); +#endif g_nOutputWidth = width; g_nOutputHeight = height;