소스 검색

Patched to compile on Visual Studio.

Ryan C. Gordon 12 년 전
부모
커밋
bf03bec120
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      test/testhittesting.c

+ 3 - 2
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;