Index: gm/displacement.cpp |
diff --git a/gm/displacement.cpp b/gm/displacement.cpp |
index 587843140b92e6297f4b39b1e381c7f82b9203b1..350b8e30f3a100fc8c0dd28fc039d6568f234afe 100644 |
--- a/gm/displacement.cpp |
+++ b/gm/displacement.cpp |
@@ -65,7 +65,7 @@ protected: |
void drawClippedBitmap(SkCanvas* canvas, int x, int y, const SkPaint& paint) { |
canvas->save(); |
- canvas->translate(x, y); |
+ canvas->translate(SkIntToScalar(x), SkIntToScalar(y)); |
canvas->clipRect(SkRect::MakeWH(SkIntToScalar(fBitmap.width()), SkIntToScalar(fBitmap.height()))); |
canvas->drawBitmap(fBitmap, 0, 0, &paint); |
canvas->restore(); |