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

Hearts: Migrate to CardGame

This commit is contained in:
Sam Atkins 2022-08-20 14:17:58 +01:00 committed by Andreas Kling
parent f9f25271b3
commit c709dc154f
4 changed files with 8 additions and 6 deletions

View file

@ -894,8 +894,8 @@ void Game::paint_event(GUI::PaintEvent& event)
painter.add_clip_rect(frame_inner_rect());
painter.add_clip_rect(event.rect());
static Gfx::Color s_background_color = palette().color(background_role());
painter.clear_rect(frame_inner_rect(), s_background_color);
Gfx::Color background_color = this->background_color();
painter.clear_rect(frame_inner_rect(), background_color);
for (auto& player : m_players) {
auto& font = painter.font().bold_variant();