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;