diff options
author | MacDue <macdue@dueutil.tech> | 2022-06-05 13:15:35 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-06-05 13:58:40 +0100 |
commit | 5fd3716e2fbb885e1623aac1f9fea98bd972107a (patch) | |
tree | 82c8ea5de69d25f10c977c87a6614bf58586dcba /Userland | |
parent | 52ee5026ea3f0099497273a327c17b7d7568a9e9 (diff) | |
download | serenity-5fd3716e2fbb885e1623aac1f9fea98bd972107a.zip |
LibGfx: Fix antialiased circles becoming too pointy at small sizes
The issue mentioned in the previous FIXME also applied to circles,
I just had not noticed. This is still not a prefect fix rather it
just papers over it, but it now seems to render circles correctly.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGfx/AntiAliasingPainter.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Userland/Libraries/LibGfx/AntiAliasingPainter.cpp b/Userland/Libraries/LibGfx/AntiAliasingPainter.cpp index 76cb6fd745..80605616fb 100644 --- a/Userland/Libraries/LibGfx/AntiAliasingPainter.cpp +++ b/Userland/Libraries/LibGfx/AntiAliasingPainter.cpp @@ -329,13 +329,10 @@ Gfx::AntiAliasingPainter::Range Gfx::AntiAliasingPainter::draw_ellipse_part( auto correct = [&] { int error = y - y_hat; - if (!is_circle) { - // FIXME: For ellipses the alpha values seem too low, which - // can make them look overly pointy. This fixes that, though there's - // probably a better solution to be found. - // (This issue seems to exist in the base algorithm) - error /= 4; - } + // FIXME: The alpha values seem too low, which makes things look + // overly pointy. This fixes that, though there's probably a better + // solution to be found. (This issue seems to exist in the base algorithm) + error /= 4; delta2_y += error; delta_y += error; |