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:
parent
3d38b7a127
commit
e9eeaedc24
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue