Index: sky/examples/game/lib/sprite.dart |
diff --git a/sky/examples/game/lib/sprite.dart b/sky/examples/game/lib/sprite.dart |
index 2ddbbfdc6a4ef43b2e3448cb9351ec2e93de76f0..063522a8499f98e881e049804a3c8db27d27ecee 100644 |
--- a/sky/examples/game/lib/sprite.dart |
+++ b/sky/examples/game/lib/sprite.dart |
@@ -53,7 +53,7 @@ class Sprite extends NodeWithSize { |
// Setup paint object for opacity and transfer mode |
Paint paint = new Paint(); |
- paint.color = Color.fromARGB((255.0*_opacity).toInt(), 255, 255, 255); |
+ paint.color = new Color.fromARGB((255.0*_opacity).toInt(), 255, 255, 255); |
if (colorOverlay != null) { |
paint.setColorFilter(new ColorFilter.mode(colorOverlay, TransferMode.srcATopMode)); |
} |
@@ -66,7 +66,7 @@ class Sprite extends NodeWithSize { |
else { |
// Paint a red square for missing texture |
canvas.drawRect(new Rect.fromLTRB(0.0, 0.0, size.width, size.height), |
- new Paint()..color = Color.fromARGB(255, 255, 0, 0)); |
+ new Paint()..color = const Color.fromARGB(255, 255, 0, 0)); |
} |
canvas.restore(); |
} |