mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:27:43 +00:00
LibCards+Games: Rename "draw" methods to "paint" for clarity
"Draw" is already a card-game term so using it for graphics was confusing me a lot!
This commit is contained in:
parent
6ef0504a42
commit
bfa9ae809f
8 changed files with 17 additions and 17 deletions
|
@ -552,12 +552,12 @@ void Game::paint_event(GUI::PaintEvent& event)
|
|||
}
|
||||
|
||||
for (auto& stack : stacks()) {
|
||||
stack.draw(painter, background_color);
|
||||
stack.paint(painter, background_color);
|
||||
}
|
||||
|
||||
if (!m_focused_cards.is_empty()) {
|
||||
for (auto& focused_card : m_focused_cards) {
|
||||
focused_card.draw(painter);
|
||||
focused_card.paint(painter);
|
||||
focused_card.save_old_position();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue