diff options
Diffstat (limited to 'Userland/Libraries/LibCards/Card.cpp')
-rw-r--r-- | Userland/Libraries/LibCards/Card.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibCards/Card.cpp b/Userland/Libraries/LibCards/Card.cpp index c38641f7fb..a29d5f77ef 100644 --- a/Userland/Libraries/LibCards/Card.cpp +++ b/Userland/Libraries/LibCards/Card.cpp @@ -148,7 +148,7 @@ void Card::draw(GUI::Painter& painter) const painter.blit(position(), m_upside_down ? *s_background : *m_front, m_front->rect()); } -void Card::clear(GUI::Painter& painter, const Color& background_color) const +void Card::clear(GUI::Painter& painter, Color const& background_color) const { painter.fill_rect({ old_position(), { width, height } }, background_color); } @@ -159,7 +159,7 @@ void Card::save_old_position() m_old_position_valid = true; } -void Card::clear_and_draw(GUI::Painter& painter, const Color& background_color) +void Card::clear_and_draw(GUI::Painter& painter, Color const& background_color) { if (is_old_position_valid()) clear(painter, background_color); |