sdlwindow: Gate SDL_GetWindowSizeInPixels behind version check
This commit is contained in:
parent
d5440c6fca
commit
50477dc028
1 changed files with 2 additions and 0 deletions
|
@ -295,7 +295,9 @@ void inputSDLThreadRun( void )
|
||||||
g_nOutputWidthPts = width;
|
g_nOutputWidthPts = width;
|
||||||
g_nOutputHeightPts = height;
|
g_nOutputHeightPts = height;
|
||||||
|
|
||||||
|
#if SDL_VERSION_ATLEAST(2, 26, 0)
|
||||||
SDL_GetWindowSizeInPixels( g_SDLWindow, &width, &height );
|
SDL_GetWindowSizeInPixels( g_SDLWindow, &width, &height );
|
||||||
|
#endif
|
||||||
g_nOutputWidth = width;
|
g_nOutputWidth = width;
|
||||||
g_nOutputHeight = height;
|
g_nOutputHeight = height;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue