From 29a38af737fd45b5b34c6d06bd4df22146c48aed Mon Sep 17 00:00:00 2001 From: stephena Date: Wed, 9 May 2012 17:28:46 +0000 Subject: [PATCH] Oops, roundf is only in C99, which isn't implemented in Visual Studio 2010. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2464 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- src/common/FBSurfaceTIA.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/FBSurfaceTIA.cxx b/src/common/FBSurfaceTIA.cxx index 4e9d2bbaf..309f4c29d 100644 --- a/src/common/FBSurfaceTIA.cxx +++ b/src/common/FBSurfaceTIA.cxx @@ -381,7 +381,7 @@ void FBSurfaceTIA::updateCoords() // accurate anyway // Lower left (x,y+h) myCoord[28] = 0.0f; - myCoord[29] = GLfloat(myImageH) / roundf((float)myImageH / myBaseH); + myCoord[29] = GLfloat(myImageH) / floor(((float)myImageH / myBaseH) + 0.5); // Lower right (x+w,y+h) myCoord[30] = 1.0f; myCoord[31] = myCoord[29];