From 2e16eb30e6791a73ed1df1a2f2604ad15da51803 Mon Sep 17 00:00:00 2001 From: George FunBook Date: Mon, 23 Dec 2024 11:40:06 -0600 Subject: [PATCH] various fixes --- flixel/system/frontEnds/RenderFrontEnd.hx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flixel/system/frontEnds/RenderFrontEnd.hx b/flixel/system/frontEnds/RenderFrontEnd.hx index 7762f7709..e2c10df44 100644 --- a/flixel/system/frontEnds/RenderFrontEnd.hx +++ b/flixel/system/frontEnds/RenderFrontEnd.hx @@ -43,6 +43,7 @@ class RenderFrontEnd public function setPixelMode(value:FlxPixelMode) { + this.pixelMode = value; switch value { case CUSTOM:// do nothing @@ -73,7 +74,7 @@ enum FlxPixelMode /** * Enables various features that result in crisp pixels, namely: * - Changes `FlxSprite.defaultAntialiasing` to `false` - * - On web, changes the `image-rendering` to `"pixelated"` + * - On web, changes the window's `image-rendering` to `"pixelated"` */ PIXELATED; @@ -85,7 +86,7 @@ enum FlxPixelMode /** * Enables various features that result in crisp pixels, namely: * - Changes `FlxSprite.defaultAntialiasing` to `true` - * - On web, changes the `image-rendering` to `"pixelated"` + * - On web, removes the window's `image-rendering` to its default value (no value) */ SMOOTH; } \ No newline at end of file