Skip to content

Commit

Permalink
FlxSpriteUtil: mention stage quality in docs (#1115), put() point bac…
Browse files Browse the repository at this point in the history
…k in drawCircle()
  • Loading branch information
Gama11 committed May 22, 2014
1 parent afc0db4 commit 5d09a7b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions flixel/util/FlxSpriteUtil.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5d09a7b

Please sign in to comment.