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.
This commit is contained in:
parent
0daf5cc434
commit
5bc5c0f31b
Notes:
sideshowbarker
2024-07-17 10:19:02 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/5bc5c0f31b Pull-request: https://github.com/SerenityOS/serenity/pull/14257
1 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue