Index: samplecode/SampleDegenerateTwoPtRadials.cpp |
diff --git a/samplecode/SampleDegenerateTwoPtRadials.cpp b/samplecode/SampleDegenerateTwoPtRadials.cpp |
index 07adae8517338c1ee14cbed06db6f04a4eec4428..92e49a7a5091494fb38839aa296c37a15fb8c718 100644 |
--- a/samplecode/SampleDegenerateTwoPtRadials.cpp |
+++ b/samplecode/SampleDegenerateTwoPtRadials.cpp |
@@ -58,7 +58,7 @@ protected: |
virtual void onDrawContent(SkCanvas* canvas) { |
fTime += SampleCode::GetAnimSecondsDelta(); |
SkScalar delta = fTime / 15.f; |
- int intPart = SkScalarFloor(delta); |
+ int intPart = SkScalarFloorToInt(delta); |
delta = delta - SK_Scalar1 * intPart; |
if (intPart % 2) { |
delta = SK_Scalar1 - delta; |