1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:07:45 +00:00

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

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) 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 top_left_color;
Color bottom_right_color; Color bottom_right_color;
Color dark_shade = palette.threed_shadow1(); Color dark_shade = palette.threed_shadow1();