SDL: Fix compilation

From ab0c5cf07d3404beed0b135724e9c201b66c897a Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Tue, 27 Dec 2022 17:25:31 +0100
Subject: [PATCH] Fix compilation

---
 cmake/test/main_gui.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/test/main_gui.c b/cmake/test/main_gui.c
index 84d8d67f8897..a1aa410d37c1 100644
--- a/cmake/test/main_gui.c
+++ b/cmake/test/main_gui.c
@@ -20,7 +20,7 @@ int main(int argc, char *argv[]) {
         return 1;
     }
     screenSurface = SDL_GetWindowSurface(window);
-    SDL_FillRect(screenSurface, NULL, SDL_MapRGB(screenSurface->format, 0xff, 0xff, 0xff));
+    SDL_FillSurfaceRect(screenSurface, NULL, SDL_MapRGB(screenSurface->format, 0xff, 0xff, 0xff));
     SDL_UpdateWindowSurface(window);
     SDL_Delay(100);
     SDL_DestroyWindow(window);