fix watcom build of SDL_test_common.c

This commit is contained in:
Ozkan Sezer 2020-06-14 12:05:56 +03:00
parent 7c0986fba4
commit 163896543f
1 changed files with 6 additions and 4 deletions

View File

@ -1027,10 +1027,12 @@ SDLTest_CommonInit(SDLTest_CommonState * state)
} }
for (i = 0; i < state->num_windows; ++i) { for (i = 0; i < state->num_windows; ++i) {
char title[1024]; char title[1024];
SDL_Rect r = { SDL_Rect r;
state->window_x, state->window_y,
state->window_w, state->window_h 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. */ /* !!! FIXME: hack to make --usable-bounds work for now. */
if ((r.x == -1) && (r.y == -1) && (r.w == -1) && (r.h == -1)) { if ((r.x == -1) && (r.y == -1) && (r.w == -1) && (r.h == -1)) {