Take pixelDensityRatio into account.

This commit is contained in:
Antoine Vandecreme 2016-04-28 11:26:09 -04:00
parent 684029bc79
commit cac7052bf8

View File

@ -1454,7 +1454,9 @@ function drawTiles( tiledImage, lastDrawn ) {
// Except when edge smoothing, we only clean the part of the // Except when edge smoothing, we only clean the part of the
// sketch canvas we are going to use for performance reasons. // sketch canvas we are going to use for performance reasons.
bounds = tiledImage.viewport.viewportToViewerElementRectangle( bounds = tiledImage.viewport.viewportToViewerElementRectangle(
tiledImage.getClippedBounds(true)).getIntegerBoundingBox(); tiledImage.getClippedBounds(true))
.getIntegerBoundingBox()
.times($.pixelDensityRatio);
} }
tiledImage._drawer._clear(true, bounds); tiledImage._drawer._clear(true, bounds);
} }