mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:27:34 +00:00
LibGfx: Return early when painting FrameShape::NoFrames
This commit is contained in:
parent
52651f41b0
commit
e113e3ccaa
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue