diff options
author | Ryan C. Gordon <icculus@icculus.org> | 2014-05-30 01:48:26 -0400 |
---|---|---|
committer | Ryan C. Gordon <icculus@icculus.org> | 2014-05-30 01:48:26 -0400 |
commit | b6997723e4f6705fb32ccfa3b9c4803107a592ac (patch) | |
tree | a568a550ebfeb36c5ba892b78e39e9a4645262b5 /test/testhittesting.c | |
parent | 97d71a50c3968a3b0c069a00c8ec9bc2cd1f5eba (diff) | |
download | sdl-b6997723e4f6705fb32ccfa3b9c4803107a592ac.tar.gz |
Patched to compile on Visual Studio.
Diffstat (limited to 'test/testhittesting.c')
-rw-r--r-- | test/testhittesting.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/testhittesting.c b/test/testhittesting.c index 4ac535caf..f6ae4ee70 100644 --- a/test/testhittesting.c +++ b/test/testhittesting.c @@ -47,14 +47,15 @@ int main(int argc, char **argv) while (!done) { + SDL_Event e; + int nothing_to_do = 1; + SDL_SetRenderDrawColor(renderer, 0, 0, 127, 255); SDL_RenderClear(renderer); SDL_SetRenderDrawColor(renderer, 255, 0, 0, 255); SDL_RenderFillRects(renderer, areas, SDL_arraysize(drag_areas)); SDL_RenderPresent(renderer); - SDL_Event e; - int nothing_to_do = 1; while (SDL_PollEvent(&e)) { nothing_to_do = 0; |