From 5d09a7b9807c2476c0eb4f6c1c1c0e8461d1e156 Mon Sep 17 00:00:00 2001 From: Gama11 Date: Thu, 22 May 2014 10:04:34 +0200 Subject: [PATCH] FlxSpriteUtil: mention stage quality in docs (#1115), put() point back in drawCircle() --- flixel/util/FlxSpriteUtil.hx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/flixel/util/FlxSpriteUtil.hx b/flixel/util/FlxSpriteUtil.hx index 576cc59415..7f563eb34c 100644 --- a/flixel/util/FlxSpriteUtil.hx +++ b/flixel/util/FlxSpriteUtil.hx @@ -26,8 +26,9 @@ import flixel.tweens.FlxTween; // TODO: rotateClockwise(): Takes the bitmapData from the given source FlxSprite and rotates it 90 degrees clockwise /** - * Some handy functions for FlxSprite manipulation, mostly drawing-related. - * Some of these work with FlxObject too. + * Some handy functions for FlxSprite (FlxObject) manipulation, mostly drawing-related. + * Note that stage quality impacts the results of the draw() functions - + * use FlxG.stage.quality = flash.display.StageQuality.BEST; for best results. */ class FlxSpriteUtil { @@ -362,12 +363,12 @@ class FlxSpriteUtil { var midPoint = sprite.getGraphicMidpoint(); - if (X == -1) { + if (X == -1) X = midPoint.x; - } - if (Y == -1) { + if (Y == -1) Y = midPoint.y; - } + + midPoint.put(); } if (Radius < 1)