SDL: Get the full display bounds if the window doesn't fit in the usable bounds.

From 683991ab71a3bbb89ddbfb403f6f27364f5af66c Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 3 Nov 2024 20:57:50 -0800
Subject: [PATCH] Get the full display bounds if the window doesn't fit in the
 usable bounds.

---
 src/video/SDL_video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index dabcc64382184..2e2a4bd3d565f 100644
--- a/src/video/SDL_video.c
+++ b/src/video/SDL_video.c
@@ -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)) {