From e9eeaedc246e7608476cdbc6a4cb6cd36f9757b6 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 1 Feb 2023 17:06:39 +0000 Subject: Chess: Stop hiding the frame border This `fill_rect()` call was covering the nice border that we just painted a few lines earlier. --- Userland/Games/Chess/ChessWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3