sdlwindow: Gate SDL_GetWindowSizeInPixels behind version check

This commit is contained in:
Joshie 2023-04-24 19:21:21 +01:00 committed by GitHub
parent d5440c6fca
commit 50477dc028
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;