Changeset 31446 for trunk/psLib/src/imageops/psImageMaskOps.c
- Timestamp:
- May 5, 2011, 10:37:54 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageMaskOps.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageMaskOps.c
r25753 r31446 146 146 for (int iy = 0; iy < image->numRows; iy++) { \ 147 147 for (int ix = 0; ix < image->numCols; ix++) { \ 148 dx = ix + image->col0 - x; \149 dy = iy + image->row0 - y; \148 dx = ix + 0.5 + image->col0 - x; \ 149 dy = iy + 0.5 + image->row0 - y; \ 150 150 r2 = PS_SQR(dx) + PS_SQR(dy); \ 151 151 if (r2 <= R2) { \ … … 197 197 for (int iy = 0; iy < image->numRows; iy++) { \ 198 198 for (int ix = 0; ix < image->numCols; ix++) { \ 199 dx = ix + image->col0 - x; \200 dy = iy + image->row0 - y; \199 dx = ix + 0.5 + image->col0 - x; \ 200 dy = iy + 0.5 + image->row0 - y; \ 201 201 r2 = PS_SQR(dx) + PS_SQR(dy); \ 202 202 if (r2 > R2) { \
Note:
See TracChangeset
for help on using the changeset viewer.
