1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:37:44 +00:00

LibGfx: Don't bother painting transparent lines

This commit is contained in:
MacDue 2022-11-28 22:53:03 +00:00 committed by Linus Groh
parent 0e65de2e11
commit 613963cbce

View file

@ -24,6 +24,9 @@ void AntiAliasingPainter::draw_anti_aliased_line(FloatPoint actual_from, FloatPo
// FIXME: Implement this :P // FIXME: Implement this :P
VERIFY(style == Painter::LineStyle::Solid); VERIFY(style == Painter::LineStyle::Solid);
if (color.alpha() == 0)
return;
// FIMXE: // FIMXE:
// This is not a proper line drawing algorithm. // This is not a proper line drawing algorithm.
// It's hack-ish AA rotated rectangle painting. // It's hack-ish AA rotated rectangle painting.