Skip to content

Commit a731d16

Browse files
committed
Merge pull request AdamAtomic#173 from Dovyski/fix_issue_170
Fix FlxSprite.drawLine() incorrect behavior when full transparency set in color
2 parents 99447a0 + 9978d25 commit a731d16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

org/flixel/FlxSprite.as

+2-2
Original file line numberDiff line numberDiff line change
@@ -524,8 +524,8 @@ package org.flixel
524524
gfx.clear();
525525
gfx.moveTo(StartX,StartY);
526526
var alphaComponent:Number = Number((Color >> 24) & 0xFF) / 255;
527-
if(alphaComponent <= 0)
528-
alphaComponent = 1;
527+
if(alphaComponent < 0)
528+
alphaComponent = 0;
529529
gfx.lineStyle(Thickness,Color,alphaComponent);
530530
gfx.lineTo(EndX,EndY);
531531

0 commit comments

Comments
 (0)