From 0adc15e42795b055c96b2de9396629562c16c370 Mon Sep 17 00:00:00 2001 From: A Crazy Town <47027981+ACrazyTown@users.noreply.github.com> Date: Sun, 23 Oct 2022 12:46:45 +0200 Subject: [PATCH 1/2] Add defaultAntialiasing option --- flixel/FlxSprite.hx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flixel/FlxSprite.hx b/flixel/FlxSprite.hx index 2980292c05..c87cbc1b19 100644 --- a/flixel/FlxSprite.hx +++ b/flixel/FlxSprite.hx @@ -128,6 +128,11 @@ using flixel.util.FlxColorTransformUtil; */ class FlxSprite extends FlxObject { + /** + * The default value for `antialiasing` across all `FlxSprite`s. + */ + public static var defaultAntialiasing:Bool = true; + /** * Class that handles adding and playing animations on this sprite. * @see https://snippets.haxeflixel.com/sprites/animation/ @@ -371,6 +376,7 @@ class FlxSprite extends FlxObject super(X, Y); useFramePixels = FlxG.renderBlit; + antialiasing = defaultAntialiasing; if (SimpleGraphic != null) loadGraphic(SimpleGraphic); } From fd566217b08d17072e98caf33bc3259521ce74b5 Mon Sep 17 00:00:00 2001 From: A Crazy Town <47027981+ACrazyTown@users.noreply.github.com> Date: Sun, 23 Oct 2022 16:50:52 +0200 Subject: [PATCH 2/2] Changed doc a bit; defaults to false now --- flixel/FlxSprite.hx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flixel/FlxSprite.hx b/flixel/FlxSprite.hx index c87cbc1b19..d718fe1a89 100644 --- a/flixel/FlxSprite.hx +++ b/flixel/FlxSprite.hx @@ -129,9 +129,10 @@ using flixel.util.FlxColorTransformUtil; class FlxSprite extends FlxObject { /** - * The default value for `antialiasing` across all `FlxSprite`s. + * The default value for `antialiasing` across all `FlxSprites`, + * defaults to `false`. */ - public static var defaultAntialiasing:Bool = true; + public static var defaultAntialiasing:Bool = false; /** * Class that handles adding and playing animations on this sprite.