Fix bustage from my previous CL: "Color.fromARGB" becomes "new Color.fromARGB".

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1184523002.
This commit is contained in:
Matt Perry
2015-06-11 15:59:10 -04:00
parent 7357aa443b
commit cc5fde4e61
9 changed files with 10 additions and 10 deletions

View File

@@ -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();
}