From 9d9a2819ee0e862f60abf50ba239a341b664845a Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 6 Sep 2018 15:49:35 -0700 Subject: replace IFLOOR with util_ifloor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit which are exactly the same function with exactly the same implementation Reviewed-by: Marek Olšák Reviewed-by: Kristian H. Kristensen Reviewed-by: Matt Turner Part-of: --- src/mesa/main/drawpix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mesa/main') diff --git a/src/mesa/main/drawpix.c b/src/mesa/main/drawpix.c index efec78cda05..45896c15552 100644 --- a/src/mesa/main/drawpix.c +++ b/src/mesa/main/drawpix.c @@ -36,6 +36,7 @@ #include "state.h" #include "glformats.h" #include "fbobject.h" +#include "util/u_math.h" /* @@ -323,8 +324,8 @@ _mesa_Bitmap( GLsizei width, GLsizei height, /* Truncate, to satisfy conformance tests (matches SGI's OpenGL). */ if (width > 0 && height > 0) { const GLfloat epsilon = 0.0001F; - GLint x = IFLOOR(ctx->Current.RasterPos[0] + epsilon - xorig); - GLint y = IFLOOR(ctx->Current.RasterPos[1] + epsilon - yorig); + GLint x = util_ifloor(ctx->Current.RasterPos[0] + epsilon - xorig); + GLint y = util_ifloor(ctx->Current.RasterPos[1] + epsilon - yorig); if (ctx->Unpack.BufferObj) { /* unpack from PBO */ -- cgit v1.2.3