Skip to content

Commit e9eeaed

Browse files
AtkinsSJawesomekling
authored andcommitted
Chess: Stop hiding the frame border
This `fill_rect()` call was covering the nice border that we just painted a few lines earlier.
1 parent 3d38b7a commit e9eeaed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Userland/Games/Chess/ChessWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void ChessWidget::paint_event(GUI::PaintEvent& event)
3535
GUI::Painter painter(*this);
3636
painter.add_clip_rect(event.rect());
3737

38-
painter.fill_rect({ 0, 0, width(), height() }, Color::Black);
38+
painter.fill_rect(frame_inner_rect(), Color::Black);
3939

4040
painter.translate(frame_thickness() + widget_offset_x, frame_thickness() + widget_offset_y);
4141

0 commit comments

Comments
 (0)