mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-31 14:29:14 +08:00
Check window fullscreen flag in SDL_GetWindowSizeInPixels
This commit is contained in:
@@ -3028,7 +3028,7 @@ int SDL_GetWindowSizeInPixels(SDL_Window *window, int *w, int *h)
|
|||||||
|
|
||||||
SDL_GetWindowSize(window, w, h);
|
SDL_GetWindowSize(window, w, h);
|
||||||
|
|
||||||
if (SDL_GetWindowFullscreenModeInternal(window)) {
|
if ((window->flags & SDL_WINDOW_FULLSCREEN) && SDL_GetWindowFullscreenModeInternal(window)) {
|
||||||
mode = SDL_GetCurrentDisplayMode(displayID);
|
mode = SDL_GetCurrentDisplayMode(displayID);
|
||||||
} else {
|
} else {
|
||||||
mode = SDL_GetDesktopDisplayMode(displayID);
|
mode = SDL_GetDesktopDisplayMode(displayID);
|
||||||
|
|||||||
Reference in New Issue
Block a user