rows, because the coordinates were crossing one or other axis at
that point and so the lower coordinate was being rounded up while
the upper one was rounded down. Judicious use of floor() fixes it.
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4179
cda61777-01e9-0310-a592-
d414129be87e
}
for (j = 0; j < poly->order; j++) {
- coords[j*2] = (int)(points[j*2] * GRID_SCALE) + ds->ox;
- coords[j*2+1] = (int)(points[j*2+1] * GRID_SCALE) + ds->oy;
+ coords[j*2] = (int)floor(points[j*2] * GRID_SCALE) + ds->ox;
+ coords[j*2+1] = (int)floor(points[j*2+1] * GRID_SCALE) + ds->oy;
}
/*