test/testhittesting.c
changeset 8940 850e149d02d8
parent 8939 caaa7653f02b
child 8946 c9592936dffc
     1.1 --- a/test/testhittesting.c	Fri May 30 01:48:08 2014 -0400
     1.2 +++ b/test/testhittesting.c	Fri May 30 01:48:26 2014 -0400
     1.3 @@ -47,14 +47,15 @@
     1.4  
     1.5      while (!done)
     1.6      {
     1.7 +        SDL_Event e;
     1.8 +        int nothing_to_do = 1;
     1.9 +
    1.10          SDL_SetRenderDrawColor(renderer, 0, 0, 127, 255);
    1.11          SDL_RenderClear(renderer);
    1.12          SDL_SetRenderDrawColor(renderer, 255, 0, 0, 255);
    1.13          SDL_RenderFillRects(renderer, areas, SDL_arraysize(drag_areas));
    1.14          SDL_RenderPresent(renderer);
    1.15  
    1.16 -        SDL_Event e;
    1.17 -        int nothing_to_do = 1;
    1.18          while (SDL_PollEvent(&e)) {
    1.19              nothing_to_do = 0;
    1.20