Commit 5cf3b58f authored by Viktor Lidholt's avatar Viktor Lidholt

Merge pull request #577 from vlidholt/master

Fixes issue in sprite
parents 45be4c6f d8c1d99c
...@@ -113,11 +113,11 @@ abstract class SpritePaint { ...@@ -113,11 +113,11 @@ abstract class SpritePaint {
paint.color = new Color.fromARGB((255.0*_opacity).toInt(), 255, 255, 255); paint.color = new Color.fromARGB((255.0*_opacity).toInt(), 255, 255, 255);
if (colorOverlay != null) { if (colorOverlay != null) {
_cachedPaint.setColorFilter(new ColorFilter.mode(colorOverlay, TransferMode.srcATop)); paint.setColorFilter(new ColorFilter.mode(colorOverlay, TransferMode.srcATop));
} }
if (transferMode != null) { if (transferMode != null) {
_cachedPaint.setTransferMode(transferMode); paint.setTransferMode(transferMode);
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment