mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
Solitaire: Refactor CardStack layout code
This commit is contained in:
parent
4bc8768737
commit
ef458f7b66
6 changed files with 64 additions and 52 deletions
|
@ -166,7 +166,7 @@ void Card::save_old_position()
|
|||
m_old_position_valid = true;
|
||||
}
|
||||
|
||||
void Card::draw_complete(GUI::Painter& painter, const Color& background_color)
|
||||
void Card::clear_and_draw(GUI::Painter& painter, const Color& background_color)
|
||||
{
|
||||
if (is_old_position_valid())
|
||||
clear(painter, background_color);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue