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
This commit is contained in:
stephena 2012-05-09 17:28:46 +00:00
parent 6314ef2549
commit 29a38af737
1 changed files with 1 additions and 1 deletions

View File

@ -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];