summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2022-02-19 18:25:07 +0000
committerAndreas Kling <kling@serenityos.org>2022-03-02 21:56:57 +0100
commit6c48fd84ade9d696e79b00d2a0b7f13b092220fd (patch)
treea0405814ca3688e1b533b6d029c07d9d485879c8 /Userland
parentdd8fdf70773538d2582cf6cbeab00eea58a84b41 (diff)
downloadserenity-6c48fd84ade9d696e79b00d2a0b7f13b092220fd.zip
LibGfx: Don't paint the window frame larger for the border-radius
Previously with a border radius you would get a "ghost" window frame which was not really there, and would not respond to clicks/attempts to resize.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibGfx/ClassicStylePainter.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/Userland/Libraries/LibGfx/ClassicStylePainter.cpp b/Userland/Libraries/LibGfx/ClassicStylePainter.cpp
index a6ec1c3c35..7416f290d6 100644
--- a/Userland/Libraries/LibGfx/ClassicStylePainter.cpp
+++ b/Userland/Libraries/LibGfx/ClassicStylePainter.cpp
@@ -302,11 +302,7 @@ void ClassicStylePainter::paint_window_frame(Painter& painter, IntRect const& re
// FIXME: This will draw "useless" pixels that'll get drawn over by the window contents.
// preferrably we should just remove the corner pixels from the completely drawn window
// but I don't know how to do that yet. :^)
- painter.fill_rect_with_rounded_corners({ rect.x() - border_radius / 2,
- rect.y() - border_radius / 2,
- rect.width() + border_radius,
- rect.height() + border_radius },
- base_color, border_radius);
+ painter.fill_rect_with_rounded_corners(rect, base_color, border_radius);
return;
}