Browse Source

Fixed MSVC2010 compiler errors (ambiguous use of ::fmod).

--HG--
branch : minor
rude 14 years ago
parent
commit
9ba2c4eb1d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/modules/graphics/opengl/Graphics.cpp

+ 3 - 3
src/modules/graphics/opengl/Graphics.cpp

@@ -871,12 +871,12 @@ namespace opengl
 	
 	
 	void Graphics::arc(DrawMode mode, float x, float y, float radius, float angle1, float angle2, int points)
 	void Graphics::arc(DrawMode mode, float x, float y, float radius, float angle1, float angle2, int points)
 	{
 	{
-		angle1 = fmod(angle1, 2 * LOVE_M_PI);
-		angle2 = fmod(angle2, 2 * LOVE_M_PI);
+		angle1 = fmod(angle1, 2.0f * (float)LOVE_M_PI);
+		angle2 = fmod(angle2, 2.0f * (float)LOVE_M_PI);
 		if (angle1 == angle2)
 		if (angle1 == angle2)
 			return;
 			return;
 		else if (angle1 > angle2)
 		else if (angle1 > angle2)
-			angle2 += LOVE_M_PI * 2;
+			angle2 += (float)LOVE_M_PI * 2.0f;
 
 
 
 
 		if(points <= 0) points = 1;
 		if(points <= 0) points = 1;