Index: samplecode/SampleStringArt.cpp |
diff --git a/samplecode/SampleStringArt.cpp b/samplecode/SampleStringArt.cpp |
index 569fd7f337f97fda3d4239363c4b41acc63b870e..0e711b09d7e32189089755aa069b11bc172e5e6c 100644 |
--- a/samplecode/SampleStringArt.cpp |
+++ b/samplecode/SampleStringArt.cpp |
@@ -42,7 +42,7 @@ protected: |
SkPoint rp = SkPoint::Make(length*SkScalarCos(step) + center.fX, |
length*SkScalarSin(step) + center.fY); |
path.lineTo(rp); |
- length += SkScalarDiv(angle, SkScalarHalf(SK_ScalarPI)); |
+ length += angle / SkScalarHalf(SK_ScalarPI); |
step += angle; |
} |
path.close(); |