diff options
author | Brian Paul <[email protected]> | 2001-04-10 15:25:45 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-04-10 15:25:45 +0000 |
commit | 33143303feaf84afbef2e63ac0adab2d70b3c344 (patch) | |
tree | 254797012163f4adfc14c6b6d38b59d24f8c0e9e /src/mesa/swrast/s_drawpix.c | |
parent | 148bd34079a677138af570a4824c50ddc6c6e786 (diff) |
Added IROUND_POS() macro to mmath.h and use where appropriate. (Klaus Niederkrueger)
Diffstat (limited to 'src/mesa/swrast/s_drawpix.c')
-rw-r--r-- | src/mesa/swrast/s_drawpix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_drawpix.c b/src/mesa/swrast/s_drawpix.c index cfc1383a63b..8432fe32758 100644 --- a/src/mesa/swrast/s_drawpix.c +++ b/src/mesa/swrast/s_drawpix.c @@ -1,4 +1,4 @@ -/* $Id: s_drawpix.c,v 1.15 2001/03/19 02:25:36 keithw Exp $ */ +/* $Id: s_drawpix.c,v 1.16 2001/04/10 15:25:45 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -190,7 +190,7 @@ fast_draw_pixels(GLcontext *ctx, GLint x, GLint y, zSpan[i] = z; /* save Y value of first row */ - zoomY0 = (GLint) (ctx->Current.RasterPos[1] + 0.5F); + zoomY0 = IROUND(ctx->Current.RasterPos[1]); } |