diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-06 18:43:21 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-06 18:43:21 +0000 |
commit | 94acc70312d8fe6605dea99f27f62b180bf22284 (patch) | |
tree | 1aee4ca3784d75c3ae2eb1a626d1cb5d6479022e /gm/blend.cpp | |
parent | 22023bea1b7c5eff958214a3fd6f7fc4ffeec76c (diff) |
Fixed Windows compiler complaints (esp. in debugger)
https://codereview.appspot.com/6497090/
git-svn-id: http://skia.googlecode.com/svn/trunk@5419 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/blend.cpp')
-rw-r--r-- | gm/blend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/blend.cpp b/gm/blend.cpp index f1f47b3444..3ba92a7981 100644 --- a/gm/blend.cpp +++ b/gm/blend.cpp @@ -49,7 +49,7 @@ protected: for (int y = 0; y < 80; y += 16) { for (int x = 0; x < 80; x += 16) { canvas.save(); - canvas.translate(x, y); + canvas.translate(SkIntToScalar(x), SkIntToScalar(y)); canvas.drawRect(SkRect::MakeXYWH(0, 0, 8, 8), darkPaint); canvas.drawRect(SkRect::MakeXYWH(8, 0, 8, 8), lightPaint); canvas.drawRect(SkRect::MakeXYWH(0, 8, 8, 8), lightPaint); |