Beeblerox / BitmapFont

cross-platform bitmap font implementation
50 stars 18 forks source link

Change PxBitmapFont's getPreparedGlyphs() method #9

Closed Beeblerox closed 12 years ago

Beeblerox commented 12 years ago

replace the line: _colorTransform.color = pColor; with following: var colorMultiplier:Float = 0.00392; _colorTransform.redOffset = 0; _colorTransform.greenOffset = 0; _colorTransform.blueOffset = 0; _colorTransform.redMultiplier = (pColor >> 16) * colorMultiplier; _colorTransform.greenMultiplier = (pColor >> 8 & 0xff) * colorMultiplier; _colorTransform.blueMultiplier = (pColor & 0xff) * colorMultiplier;

So it would have the same behavior on flash and cpp targets