Skip to content

Commit

Permalink
Fix FlxSprite.drawLine() incorrect behavior when full transparency se…
Browse files Browse the repository at this point in the history
…t in color

Fixes AdamAtomic#170.
  • Loading branch information
Dovyski committed Aug 20, 2013
1 parent 3c49912 commit 9978d25
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 9978d25

Please sign in to comment.