Explorar o código

Added a few debug printf() calls.

Ryan C. Gordon %!s(int64=12) %!d(string=hai) anos
pai
achega
7364ed016b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      test/testhittesting.c

+ 2 - 0
test/testhittesting.c

@@ -18,10 +18,12 @@ hitTest(SDL_Window *window, const SDL_Point *pt, void *data)
     int i;
     for (i = 0; i < numareas; i++) {
         if (SDL_PointInRect(pt, &areas[i])) {
+            printf("HIT-TEST: DRAGGABLE\n");
             return SDL_HITTEST_DRAGGABLE;
         }
     }
 
+    printf("HIT-TEST: NORMAL\n");
     return SDL_HITTEST_NORMAL;
 }