aboutsummaryrefslogtreecommitdiff
path: root/samplecode/SamplePathUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SamplePathUtils.cpp')
-rw-r--r--samplecode/SamplePathUtils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SamplePathUtils.cpp b/samplecode/SamplePathUtils.cpp
index d7a7e54833..d1943630ea 100644
--- a/samplecode/SamplePathUtils.cpp
+++ b/samplecode/SamplePathUtils.cpp
@@ -64,7 +64,7 @@ protected:
/////////////////////////////////////////////////////////////
virtual void onDrawContent(SkCanvas* canvas) {
- SkScalar intervals[8] = {.5, .3, .5, .3, .5, .3, .5, .3};
+ SkScalar intervals[8] = { .5f, .3f, .5f, .3f, .5f, .3f, .5f, .3f };
SkDashPathEffect dash(intervals, 2, fPhase);
SkCornerPathEffect corner(.25f);
SkComposePathEffect compose(&dash, &corner);
@@ -93,7 +93,7 @@ protected:
}
// for animated pathEffect
- fPhase += .01;
+ fPhase += .01f;
this->inval(NULL);
}