Skip to content

Commit

Permalink
various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli committed Dec 23, 2024
1 parent ed5fdf0 commit 2e16eb3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flixel/system/frontEnds/RenderFrontEnd.hx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class RenderFrontEnd

public function setPixelMode(value:FlxPixelMode)
{
this.pixelMode = value;
switch value
{
case CUSTOM:// do nothing
Expand Down Expand Up @@ -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;

Expand All @@ -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;
}

0 comments on commit 2e16eb3

Please sign in to comment.