Skip to content

Commit

Permalink
fix vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
renancaraujo committed Jan 8, 2025
1 parent 7d74605 commit 2de3f35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/game/game/hud.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ class NoiseAdd extends SpriteComponent with HasGameRef<WatchsteroidsGame> {
class Vignette extends RectangleComponent with HasGameRef<WatchsteroidsGame> {
@override
Future<void> onLoad() async {
final parent = this.parent! as Viewport;
size = parent.size;
size = game.size;
priority = 100;

paint = BasicPalette.white.paint()
Expand Down

0 comments on commit 2de3f35

Please sign in to comment.