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/main/drawpix.c | |
parent | 148bd34079a677138af570a4824c50ddc6c6e786 (diff) |
Added IROUND_POS() macro to mmath.h and use where appropriate. (Klaus Niederkrueger)
Diffstat (limited to 'src/mesa/main/drawpix.c')
-rw-r--r-- | src/mesa/main/drawpix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/drawpix.c b/src/mesa/main/drawpix.c index 4b34ddd707a..d46ace0a655 100644 --- a/src/mesa/main/drawpix.c +++ b/src/mesa/main/drawpix.c @@ -1,4 +1,4 @@ -/* $Id: drawpix.c,v 1.51 2001/03/19 02:25:35 keithw Exp $ */ +/* $Id: drawpix.c,v 1.52 2001/04/10 15:25:45 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -64,8 +64,8 @@ _mesa_DrawPixels( GLsizei width, GLsizei height, _mesa_update_state(ctx); } - x = (GLint) (ctx->Current.RasterPos[0] + 0.5F); - y = (GLint) (ctx->Current.RasterPos[1] + 0.5F); + x = IROUND(ctx->Current.RasterPos[0]); + y = IROUND(ctx->Current.RasterPos[1]); ctx->OcclusionResult = GL_TRUE; ctx->Driver.DrawPixels(ctx, x, y, width, height, format, type, |