mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:57:35 +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
|
||||
VERIFY(style == Painter::LineStyle::Solid);
|
||||
|
||||
if (color.alpha() == 0)
|
||||
return;
|
||||
|
||||
// FIMXE:
|
||||
// This is not a proper line drawing algorithm.
|
||||
// It's hack-ish AA rotated rectangle painting.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue