summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2022-02-22 07:14:25 -0500
committerAndreas Kling <kling@serenityos.org>2022-02-24 19:09:41 +0100
commite113e3ccaa7066b1f1ff9b18e3df05c21fdbc62e (patch)
tree27346107a0e220b326734fc1c7ffa9ae3a8b99c7 /Userland
parent52651f41b09913811201125c7cc0df016c05993d (diff)
downloadserenity-e113e3ccaa7066b1f1ff9b18e3df05c21fdbc62e.zip
LibGfx: Return early when painting FrameShape::NoFrames
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibGfx/ClassicStylePainter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGfx/ClassicStylePainter.cpp b/Userland/Libraries/LibGfx/ClassicStylePainter.cpp
index 557e784acc..738b39b6f1 100644
--- a/Userland/Libraries/LibGfx/ClassicStylePainter.cpp
+++ b/Userland/Libraries/LibGfx/ClassicStylePainter.cpp
@@ -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();