Skip to content

Commit

Permalink
Merge pull request #173 from Dovyski/fix_issue_170
Browse files Browse the repository at this point in the history
Fix FlxSprite.drawLine() incorrect behavior when full transparency set in color
  • Loading branch information
IQAndreas committed Aug 20, 2013
2 parents 99447a0 + 9978d25 commit a731d16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions org/flixel/FlxSprite.as
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,8 @@ package org.flixel
gfx.clear();
gfx.moveTo(StartX,StartY);
var alphaComponent:Number = Number((Color >> 24) & 0xFF) / 255;
if(alphaComponent <= 0)
alphaComponent = 1;
if(alphaComponent < 0)
alphaComponent = 0;
gfx.lineStyle(Thickness,Color,alphaComponent);
gfx.lineTo(EndX,EndY);

Expand Down

0 comments on commit a731d16

Please sign in to comment.