summaryrefslogtreecommitdiff
path: root/cppcanvas/source
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-06-07 20:54:33 +0200
committerMichael Stahl <mstahl@redhat.com>2013-06-07 20:54:33 +0200
commit930127da85ee72ccec6b81efc18cc9878f11d88d (patch)
tree408d5a324f36dc25bf64a272de68c11b15d1c411 /cppcanvas/source
parentae0e295f6063e63d90561fab8c856685ce2c94c7 (diff)
cppcanvas: try to make MSVC tinderbox happy
Change-Id: If4fd5a788d3907a986e27f5f53d5995c7035f685
Diffstat (limited to 'cppcanvas/source')
-rw-r--r--cppcanvas/source/mtfrenderer/emfplus.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx
index 14670a4ad6f1..47b98bb72875 100644
--- a/cppcanvas/source/mtfrenderer/emfplus.cxx
+++ b/cppcanvas/source/mtfrenderer/emfplus.cxx
@@ -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);