summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-07 08:17:02 +0100
committerBrian <[email protected]>2007-08-07 08:17:02 +0100
commit0ed3ff5011442facdaccdb84518d7712833f9dab (patch)
tree6f46f0cd8c0a7c9b4e933447841f7fd08a2e5ba9 /src/mesa/swrast
parentd05b72154319041dad38f24696638396753e0da3 (diff)
fix even-sized point positioning (bug 11874)
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r--src/mesa/swrast/s_points.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/swrast/s_points.c b/src/mesa/swrast/s_points.c
index 4768fbea972..21316372e80 100644
--- a/src/mesa/swrast/s_points.c
+++ b/src/mesa/swrast/s_points.c
@@ -172,9 +172,9 @@ sprite_point(GLcontext *ctx, const SWvertex *vert)
}
else {
/* even size */
- xmin = (GLint) x - iRadius + 1;
+ xmin = (GLint) x - iRadius;
xmax = xmin + iSize - 1;
- ymin = (GLint) y - iRadius + 1;
+ ymin = (GLint) y - iRadius;
ymax = ymin + iSize - 1;
}
@@ -418,9 +418,9 @@ large_point(GLcontext *ctx, const SWvertex *vert)
}
else {
/* even size */
- xmin = (GLint) x - iRadius + 1;
+ xmin = (GLint) x - iRadius;
xmax = xmin + iSize - 1;
- ymin = (GLint) y - iRadius + 1;
+ ymin = (GLint) y - iRadius;
ymax = ymin + iSize - 1;
}