Commit 163896543f94db70d5aa8a00562d27ccc56e2c5e

Ozkan Sezer 2020-06-14T12:05:56

fix watcom build of SDL_test_common.c

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/src/test/SDL_test_common.c b/src/test/SDL_test_common.c
index b48c6a5..72404e0 100644
--- a/src/test/SDL_test_common.c
+++ b/src/test/SDL_test_common.c
@@ -1027,10 +1027,12 @@ SDLTest_CommonInit(SDLTest_CommonState * state)
         }
         for (i = 0; i < state->num_windows; ++i) {
             char title[1024];
-            SDL_Rect r = {
-                state->window_x, state->window_y,
-                state->window_w, state->window_h
-            };
+            SDL_Rect r;
+
+            r.x = state->window_x;
+            r.y = state->window_y;
+            r.w = state->window_w;
+            r.h = state->window_h;
 
             /* !!! FIXME: hack to make --usable-bounds work for now. */
             if ((r.x == -1) && (r.y == -1) && (r.w == -1) && (r.h == -1)) {