Index: dm/DMTileGridTask.cpp |
diff --git a/dm/DMTileGridTask.cpp b/dm/DMTileGridTask.cpp |
index 67cbbd924af25f7938ffeafd28702515d9c81504..5c0aaada3e0bae02852fc8c537b12cd5761eb859 100644 |
--- a/dm/DMTileGridTask.cpp |
+++ b/dm/DMTileGridTask.cpp |
@@ -49,8 +49,8 @@ void TileGridTask::draw() { |
for (int x = 0; x < tiles_needed(full.width(), tile.width()); x++) { |
SkAutoCanvasRestore ar(&tileCanvas, true/*also save now*/); |
- const SkScalar xOffset = x * tile.width(), |
- yOffset = y * tile.height(); |
+ const SkScalar xOffset = SkIntToScalar(x * tile.width()), |
+ yOffset = SkIntToScalar(y * tile.height()); |
SkMatrix matrix = tileCanvas.getTotalMatrix(); |
matrix.postTranslate(-xOffset, -yOffset); |
tileCanvas.setMatrix(matrix); |