mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Get the full display bounds if the window doesn't fit in the usable bounds.
This commit is contained in:
parent
6823e3f005
commit
683991ab71
1 changed files with 1 additions and 1 deletions
|
|
@ -2335,7 +2335,7 @@ SDL_Window *SDL_CreateWindowWithProperties(SDL_PropertiesID props)
|
|||
SDL_GetDisplayUsableBounds(displayID, &bounds);
|
||||
if (w > bounds.w || h > bounds.h) {
|
||||
// This window is larger than the usable bounds, just center on the display
|
||||
SDL_GetDisplayUsableBounds(displayID, &bounds);
|
||||
SDL_GetDisplayBounds(displayID, &bounds);
|
||||
}
|
||||
if (SDL_WINDOWPOS_ISCENTERED(x) || SDL_WINDOWPOS_ISUNDEFINED(x)) {
|
||||
if (SDL_WINDOWPOS_ISUNDEFINED(x)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue