Commit 8f7427c15808f000b5042628363d605b6b684c10

Frank Praznik 2023-03-08T19:19:15

tests: Always set valid dimensions for the fullscreen mode

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/test/SDL_test_common.c b/src/test/SDL_test_common.c
index 40e6e42..b1477df 100644
--- a/src/test/SDL_test_common.c
+++ b/src/test/SDL_test_common.c
@@ -1287,6 +1287,8 @@ SDLTest_CommonInit(SDLTest_CommonState *state)
                 state->window_w = w;
                 state->window_h = h;
             }
+            fullscreen_mode.w = state->window_w;
+            fullscreen_mode.h = state->window_h;
             if (SDL_SetWindowDisplayMode(state->windows[i], &fullscreen_mode) < 0) {
                 SDL_Log("Can't set up fullscreen display mode: %s\n",
                         SDL_GetError());