SDL: Fixed build (70890)

From 70890b175ebfb1850b6bdb0bc8afc9dea948baa7 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 13 Aug 2024 07:39:43 -0700
Subject: [PATCH] Fixed build

---
 src/video/kmsdrm/SDL_kmsdrmvideo.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/video/kmsdrm/SDL_kmsdrmvideo.c b/src/video/kmsdrm/SDL_kmsdrmvideo.c
index 003b3fb085141..35005b9086353 100644
--- a/src/video/kmsdrm/SDL_kmsdrmvideo.c
+++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c
@@ -1591,7 +1591,8 @@ int KMSDRM_CreateWindow(_THIS, SDL_Window *window)
     /* Tell the app that the window has moved to top-left. */
     {
         SDL_Rect display_bounds;
-        SDL_GetDisplayBounds(SDL_GetDisplayForWindow(window), &display_bounds);
+        SDL_zero(display_bounds);
+        SDL_GetDisplayBounds(SDL_GetWindowDisplayIndex(window), &display_bounds);
         SDL_SendWindowEvent(window, SDL_WINDOWEVENT_MOVED, display_bounds.x, display_bounds.y);
     }