mirror of https://github.com/stella-emu/stella.git
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:
parent
6314ef2549
commit
29a38af737
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue