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:
parent
0e65de2e11
commit
613963cbce
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue