summaryrefslogtreecommitdiffstats
path: root/skia/ext/canvas_paint_x.h
diff options
context:
space:
mode:
Diffstat (limited to 'skia/ext/canvas_paint_x.h')
-rw-r--r--skia/ext/canvas_paint_x.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/skia/ext/canvas_paint_x.h b/skia/ext/canvas_paint_x.h
index 9868327..a9f51d2 100644
--- a/skia/ext/canvas_paint_x.h
+++ b/skia/ext/canvas_paint_x.h
@@ -88,7 +88,7 @@ class CanvasPaintT : public T {
// Need to translate so that the dirty region appears at the origin of the
// surface.
- T::translate(-SkIntToScalar(region_->x), -SkIntToScalar(region_->y));
+ T::translate(-SkDoubleToScalar(region_->x), -SkDoubleToScalar(region_->y));
context_ = BeginPlatformPaint(this);
}