@pixi/canvas-sprite
Advanced tools
Comparing version 7.2.0-beta to 7.2.0-beta.2
@@ -73,5 +73,5 @@ 'use strict'; | ||
if (sprite.tint !== 16777215) { | ||
if (sprite._cachedTint !== sprite.tint || sprite._tintedCanvas.tintId !== sprite._texture._updateID) { | ||
sprite._cachedTint = sprite.tint; | ||
sprite._tintedCanvas = canvasRenderer.canvasUtils.getTintedCanvas(sprite, sprite.tint); | ||
if (sprite._cachedTint !== sprite.tintValue || sprite._tintedCanvas.tintId !== sprite._texture._updateID) { | ||
sprite._cachedTint = sprite.tintValue; | ||
sprite._tintedCanvas = canvasRenderer.canvasUtils.getTintedCanvas(sprite, sprite.tintValue); | ||
} | ||
@@ -78,0 +78,0 @@ context.drawImage(sprite._tintedCanvas, 0, 0, Math.floor(sourceWidth * resolution), Math.floor(sourceHeight * resolution), Math.floor(dx * activeResolution), Math.floor(dy * activeResolution), Math.floor(destWidth * activeResolution), Math.floor(destHeight * activeResolution)); |
{ | ||
"name": "@pixi/canvas-sprite", | ||
"version": "7.2.0-beta", | ||
"version": "7.2.0-beta.2", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "module": "lib/index.mjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
36366