me testing the wrong variables for clicks on the tile border...
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4197
cda61777-01e9-0310-a592-
d414129be87e
ty = y / TILE_SIZE;
if (tx >= state->width || ty >= state->height)
return NULL;
ty = y / TILE_SIZE;
if (tx >= state->width || ty >= state->height)
return NULL;
- if (tx % TILE_SIZE >= TILE_SIZE - TILE_BORDER ||
- ty % TILE_SIZE >= TILE_SIZE - TILE_BORDER)
+ if (x % TILE_SIZE >= TILE_SIZE - TILE_BORDER ||
+ y % TILE_SIZE >= TILE_SIZE - TILE_BORDER)