Skip to content

Commit

Permalink
fix watcom build of SDL_test_common.c
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Jun 14, 2020
1 parent 7c0986f commit 1638965
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/test/SDL_test_common.c
Expand Up @@ -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)) {
Expand Down

0 comments on commit 1638965

Please sign in to comment.