mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibGfx: Return early when painting FrameShape::NoFrames
This commit is contained in:
parent
52651f41b0
commit
e113e3ccaa
Notes:
sideshowbarker
2024-07-17 18:19:11 +09:00
Author: https://github.com/thankyouverycool Commit: https://github.com/SerenityOS/serenity/commit/e113e3ccaa Pull-request: https://github.com/SerenityOS/serenity/pull/12723
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…
Reference in a new issue