mirror of
https://github.com/love2d/love.git
synced 2026-08-14 10:13:46 +02:00
Fixed MSVC2010 compiler errors (ambiguous use of ::fmod).
--HG-- branch : minor
This commit is contained in:
@@ -871,12 +871,12 @@ namespace opengl
|
||||
|
||||
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)
|
||||
return;
|
||||
else if (angle1 > angle2)
|
||||
angle2 += LOVE_M_PI * 2;
|
||||
angle2 += (float)LOVE_M_PI * 2.0f;
|
||||
|
||||
|
||||
if(points <= 0) points = 1;
|
||||
|
||||
Reference in New Issue
Block a user