mirror of https://github.com/libsdl-org/SDL.git
Check window fullscreen flag in SDL_GetWindowSizeInPixels
This commit is contained in:
parent
e9a7014e56
commit
8fa550e003
|
|
@ -3028,7 +3028,7 @@ int SDL_GetWindowSizeInPixels(SDL_Window *window, int *w, int *h)
|
|||
|
||||
SDL_GetWindowSize(window, w, h);
|
||||
|
||||
if (SDL_GetWindowFullscreenModeInternal(window)) {
|
||||
if ((window->flags & SDL_WINDOW_FULLSCREEN) && SDL_GetWindowFullscreenModeInternal(window)) {
|
||||
mode = SDL_GetCurrentDisplayMode(displayID);
|
||||
} else {
|
||||
mode = SDL_GetDesktopDisplayMode(displayID);
|
||||
|
|
|
|||
Loading…
Reference in New Issue