cppcanvas: try to make MSVC tinderbox happy

Change-Id: If4fd5a788d3907a986e27f5f53d5995c7035f685
This commit is contained in:
Michael Stahl 2013-06-07 20:54:33 +02:00
parent ae0e295f60
commit 930127da85

View File

@ -1343,12 +1343,12 @@ namespace cppcanvas
B2DSize mappedSize( MapSize (dw/2, dh/2));
float endAngle = startAngle + sweepAngle;
startAngle = fmod (startAngle, M_PI*2);
startAngle = fmodf(startAngle, M_PI*2);
if (startAngle < 0)
startAngle += M_PI*2;
endAngle = fmod (endAngle, M_PI*2);
startAngle += static_cast<float>(M_PI*2);
endAngle = fmodf(endAngle, M_PI*2);
if (endAngle < 0)
endAngle += M_PI*2;
endAngle += static_cast<float>(M_PI*2);
if (sweepAngle < 0)
std::swap (endAngle, startAngle);