Chess: Stop hiding the frame border

This `fill_rect()` call was covering the nice border that we just
painted a few lines earlier.
This commit is contained in:
Sam Atkins 2023-02-01 17:06:39 +00:00 committed by Andreas Kling
commit e9eeaedc24
Notes: sideshowbarker 2024-07-17 09:49:48 +09:00

View file

@ -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);