Added a few debug printf() calls.

main
Ryan C. Gordon 2014-05-28 01:27:27 -04:00
parent 98c03f391d
commit 7364ed016b
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}