diff --git a/src/core/renderers/canvas/utils/CanvasTinter.js b/src/core/renderers/canvas/utils/CanvasTinter.js index c4447e8..95f7bf7 100644 --- a/src/core/renderers/canvas/utils/CanvasTinter.js +++ b/src/core/renderers/canvas/utils/CanvasTinter.js @@ -66,7 +66,11 @@ { var context = canvas.getContext( '2d' ); + var resolution = texture.baseTexture.resolution; + var crop = texture.crop; + crop.width *= resolution; + crop.height *= resolution; canvas.width = crop.width; canvas.height = crop.height; @@ -115,7 +119,11 @@ { var context = canvas.getContext( '2d' ); + var resolution = texture.baseTexture.resolution; + var crop = texture.crop; + crop.width *= resolution; + crop.height *= resolution; canvas.width = crop.width; canvas.height = crop.height; @@ -151,7 +159,11 @@ { var context = canvas.getContext( '2d' ); + var resolution = texture.baseTexture.resolution; + var crop = texture.crop; + crop.width *= resolution; + crop.height *= resolution; canvas.width = crop.width; canvas.height = crop.height;