LibGfx: Return early when painting FrameShape::NoFrames

This commit is contained in:
thankyouverycool 2022-02-22 07:14:25 -05:00 committed by Andreas Kling
parent 52651f41b0
commit e113e3ccaa
Notes: sideshowbarker 2024-07-17 18:19:11 +09:00

View file

@ -216,6 +216,9 @@ void ClassicStylePainter::paint_button(Painter& painter, IntRect const& rect, Pa
void ClassicStylePainter::paint_frame(Painter& painter, IntRect const& rect, Palette const& palette, FrameShape shape, FrameShadow shadow, int thickness, bool skip_vertical_lines)
{
if (shape == Gfx::FrameShape::NoFrame)
return;
Color top_left_color;
Color bottom_right_color;
Color dark_shade = palette.threed_shadow1();