1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +00:00

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
parent 3d38b7a127
commit e9eeaedc24

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