From 0a59be586df7fd9066a86a5196f9a766d0734e1e Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Mon, 11 Sep 2023 13:04:22 -0600 Subject: [PATCH] don't scale FlxText --- src/hollywoo_flixel/FlxDirector.kiss | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/hollywoo_flixel/FlxDirector.kiss b/src/hollywoo_flixel/FlxDirector.kiss index 22ce575..39d5bb0 100644 --- a/src/hollywoo_flixel/FlxDirector.kiss +++ b/src/hollywoo_flixel/FlxDirector.kiss @@ -814,12 +814,13 @@ (method scaleProp [:FlxSprite prop] (let [propKey (_propKey prop)] (unless (flxMovie.propScales.exists propKey) - // Set the initial scale so the thing fits on the screen, at least - (prop.setGraphicSize FlxG.width) - (prop.updateHitbox) - (when (> prop.height FlxG.height) - (prop.setGraphicSize 0 FlxG.height)) - (flxMovie.propScales.put propKey (new HFloat prop.scale.x))) + (unless (Std.isOfType prop FlxText) + // Set the initial scale so the thing fits on the screen, at least + (prop.setGraphicSize FlxG.width) + (prop.updateHitbox) + (when (> prop.height FlxG.height) + (prop.setGraphicSize 0 FlxG.height)) + (flxMovie.propScales.put propKey (new HFloat prop.scale.x)))) (let [:Float scale .value (flxMovie.propScales.get propKey)] (when (StringTools.contains propKey "anonProp") (return))