mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-31 13:48:25 +00:00
LibGUI: Clip GUI::Frame children to the frame_inner_rect()
This way we don't draw the frame border underneath our children. :^)
This commit is contained in:
@@ -59,4 +59,10 @@ void Frame::paint_event(PaintEvent& event)
|
||||
painter.add_clip_rect(event.rect());
|
||||
Gfx::StylePainter::paint_frame(painter, rect(), palette(), m_shape, m_shadow, m_thickness, spans_entire_window_horizontally());
|
||||
}
|
||||
|
||||
Gfx::IntRect Frame::children_clip_rect() const
|
||||
{
|
||||
return frame_inner_rect();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user