SDL: tests: Check the usable bounds for centered window positioning

From 888a45977d06b124e330eb320625ce620b2329a4 Mon Sep 17 00:00:00 2001
From: Frank Praznik <[EMAIL REDACTED]>
Date: Tue, 21 May 2024 12:26:40 -0400
Subject: [PATCH] tests: Check the usable bounds for centered window
 positioning

SDL now centers windows according to the usable display bounds, so the window centering test requires an update for the new behavior.
---
 test/testautomation_video.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/testautomation_video.c b/test/testautomation_video.c
index d25922feb8141..c98cab7e22616 100644
--- a/test/testautomation_video.c
+++ b/test/testautomation_video.c
@@ -1680,15 +1680,15 @@ static int video_setWindowCenteredOnDisplay(void *arg)
     if (displays) {
 
         /* Get display bounds */
-        result = SDL_GetDisplayBounds(displays[0 % displayNum], &display0);
-        SDLTest_AssertPass("SDL_GetDisplayBounds()");
+        result = SDL_GetDisplayUsableBounds(displays[0 % displayNum], &display0);
+        SDLTest_AssertPass("SDL_GetDisplayUsableBounds()");
         SDLTest_AssertCheck(result == 0, "Verify return value; expected: 0, got: %d", result);
         if (result != 0) {
             return TEST_ABORTED;
         }
 
-        result = SDL_GetDisplayBounds(displays[1 % displayNum], &display1);
-        SDLTest_AssertPass("SDL_GetDisplayBounds()");
+        result = SDL_GetDisplayUsableBounds(displays[1 % displayNum], &display1);
+        SDLTest_AssertPass("SDL_GetDisplayUsableBounds()");
         SDLTest_AssertCheck(result == 0, "Verify return value; expected: 0, got: %d", result);
         if (result != 0) {
             return TEST_ABORTED;