Skip to content

Commit cb54aa9

Browse files
BoloVEVOGeokureli
andauthored
FlxBitmapText: Fix Incorrect alpha behavior (#3409)
* Fix incorrect alpha behavior * use rgb * remove () --------- Co-authored-by: George Kurelic <[email protected]>
1 parent 2418e14 commit cb54aa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flixel/text/FlxBitmapText.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ class FlxBitmapText extends FlxSprite
338338
{
339339
checkPendingChanges(true);
340340

341-
final colorHelper = Std.int(alpha * 0xFF) << 24 | this.color;
341+
final colorHelper = Std.int(alpha * 0xFF) << 24 | this.color.rgb;
342342

343343
final textColorTransform = textColorTransformDrawHelper.reset();
344344
textColorTransform.setMultipliers(colorHelper);
@@ -1806,4 +1806,4 @@ private class ReusableFrame extends FlxFrame
18061806
* * whether split words get a hypen added automatically
18071807
* * minimum character length of split word chunk
18081808
* * whether to cut words that extend beyond the width
1809-
*/
1809+
*/

0 commit comments

Comments
 (0)