diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-23 19:47:05 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-23 19:47:05 +0000 |
commit | 0f8990cd2cf8bc934efef15c74e4d9439ddac184 (patch) | |
tree | 40b3cc58b9e835c627399e89af95d466e163b3d6 /gm/cubicpaths.cpp | |
parent | 03ca64b832819564d958b70ee27a2134ff88c9c6 (diff) |
use SkScalar instead of int for loops, to avoid warning in canvas->translate() calls
BUG=
Review URL: https://codereview.chromium.org/15875012
git-svn-id: http://skia.googlecode.com/svn/trunk@9263 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/cubicpaths.cpp')
-rw-r--r-- | gm/cubicpaths.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/cubicpaths.cpp b/gm/cubicpaths.cpp index 56ed7297f5..e0d72b44b4 100644 --- a/gm/cubicpaths.cpp +++ b/gm/cubicpaths.cpp @@ -30,9 +30,9 @@ protected: SkPaint paint; SkRect bounds = path.getBounds(); - for (int dy = -1; dy <= 1; ++dy) { + for (SkScalar dy = -1; dy <= 1; dy += 1) { canvas->save(); - for (int dx = -1; dx <= 1; ++dx) { + for (SkScalar dx = -1; dx <= 1; dx += 1) { canvas->save(); canvas->clipRect(bounds); canvas->translate(dx, dy); |