mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 12:28:03 +08:00
Fixing warnings and nits on our examples
This commit is contained in:
@ -34,7 +34,7 @@ class Square extends PositionComponent {
|
||||
prepareCanvas(c);
|
||||
|
||||
c.drawRect(Rect.fromLTWH(0, 0, width, height), Palette.white.paint);
|
||||
c.drawRect(Rect.fromLTWH(0, 0, 3, 3), Palette.red.paint);
|
||||
c.drawRect(const Rect.fromLTWH(0, 0, 3, 3), Palette.red.paint);
|
||||
c.drawRect(Rect.fromLTWH(width / 2, height / 2, 3, 3), Palette.blue.paint);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user