1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:17:45 +00:00

Solitaire: Disable filling with background color during end animation

This fixes #7792.

The visual glitches with card corners, and the screen-clear when
opening a menu, were both caused by the widgets having
`fill_with_background_color` set. We need that set most of the time,
so we just disable it for the duration of the game-over animation.

Also resove a FIXME that no longer applies. :^)
This commit is contained in:
Sam Atkins 2021-06-12 21:11:54 +01:00 committed by Linus Groh
parent 679f831451
commit 364d728e66
2 changed files with 12 additions and 1 deletions

View file

@ -170,6 +170,7 @@ private:
void start_game_over_animation();
void stop_game_over_animation();
void create_new_animation_card();
void set_background_fill_enabled(bool);
void check_for_game_over();
void dump_layout() const;