From 95a2eb97673fa3139218347a8eb2c1d34f585dbe Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 7 Aug 2007 08:20:18 +0100 Subject: fix even-sized point positioning (bug 11874) --- src/mesa/swrast/s_pointtemp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/swrast/s_pointtemp.h b/src/mesa/swrast/s_pointtemp.h index dddc2f7f40c..94364643d4b 100644 --- a/src/mesa/swrast/s_pointtemp.h +++ b/src/mesa/swrast/s_pointtemp.h @@ -217,9 +217,9 @@ NAME ( GLcontext *ctx, const SWvertex *vert ) } else { /* even size */ - xmin = (GLint) vert->win[0] - iRadius + 1; + xmin = (GLint) vert->win[0] - iRadius; xmax = xmin + iSize - 1; - ymin = (GLint) vert->win[1] - iRadius + 1; + ymin = (GLint) vert->win[1] - iRadius; ymax = ymin + iSize - 1; } #endif /*SMOOTH*/ -- cgit v1.2.3