summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-02-01 17:06:39 +0000
committerAndreas Kling <kling@serenityos.org>2023-02-02 14:52:21 +0100
commite9eeaedc246e7608476cdbc6a4cb6cd36f9757b6 (patch)
tree921beca9ab185fdb953410eec8baace8df51c392 /Userland
parent3d38b7a127467e4df5ddb7df6be2847afc39fd61 (diff)
downloadserenity-e9eeaedc246e7608476cdbc6a4cb6cd36f9757b6.zip
Chess: Stop hiding the frame border
This `fill_rect()` call was covering the nice border that we just painted a few lines earlier.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Games/Chess/ChessWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Games/Chess/ChessWidget.cpp b/Userland/Games/Chess/ChessWidget.cpp
index 15d18cc8b2..d16d318e09 100644
--- a/Userland/Games/Chess/ChessWidget.cpp
+++ b/Userland/Games/Chess/ChessWidget.cpp
@@ -35,7 +35,7 @@ void ChessWidget::paint_event(GUI::PaintEvent& event)
GUI::Painter painter(*this);
painter.add_clip_rect(event.rect());
- painter.fill_rect({ 0, 0, width(), height() }, Color::Black);
+ painter.fill_rect(frame_inner_rect(), Color::Black);
painter.translate(frame_thickness() + widget_offset_x, frame_thickness() + widget_offset_y);