mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:57:45 +00:00
LibGfx: Fix draw_anti_aliased_line() for steep lines with "OnlyEnds"
Regression from ab794a199b
.
This commit is contained in:
parent
e07ec02470
commit
6b5f0d11ce
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ void Gfx::AntiAliasingPainter::draw_anti_aliased_line(FloatPoint const& actual_f
|
|||
if (steep) {
|
||||
for (int x = xpxl1 + 1; x <= xpxl2 - 1; ++x) {
|
||||
if constexpr (policy == AntiAliasPolicy::OnlyEnds) {
|
||||
plot(integer_part(intery), x, one_minus_fractional_part(intery));
|
||||
plot(integer_part(intery), x, 1);
|
||||
} else {
|
||||
plot(integer_part(intery), x, one_minus_fractional_part(intery));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue