From 5bc5c0f31b4328adfe364b972858f973b80448aa Mon Sep 17 00:00:00 2001 From: MacDue Date: Sat, 11 Jun 2022 17:32:06 +0100 Subject: [PATCH] LibGfx: Fix rendering of bottom corners in AA rounded rectangle Previously, the left corner was using the right's radius and the right corner was using the left's. This corrects that. --- Userland/Libraries/LibGfx/AntiAliasingPainter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Userland/Libraries/LibGfx/AntiAliasingPainter.cpp b/Userland/Libraries/LibGfx/AntiAliasingPainter.cpp index 80605616fb..2fd8f0aeaf 100644 --- a/Userland/Libraries/LibGfx/AntiAliasingPainter.cpp +++ b/Userland/Libraries/LibGfx/AntiAliasingPainter.cpp @@ -454,11 +454,11 @@ void Gfx::AntiAliasingPainter::fill_rect_with_rounded_corners(IntRect const& a_r }; IntPoint bottom_left_corner { a_rect.x() + bottom_left_radius, - a_rect.y() + a_rect.height() - bottom_right_radius + a_rect.y() + a_rect.height() - bottom_left_radius }; IntPoint bottom_right_corner { - a_rect.x() + a_rect.width() - bottom_left_radius, - a_rect.y() + a_rect.height() - bottom_left_radius + a_rect.x() + a_rect.width() - bottom_right_radius, + a_rect.y() + a_rect.height() - bottom_right_radius }; IntRect top_rect {