From 2e4341f783b0329a960d6f3b2edbafa4d66d0221 Mon Sep 17 00:00:00 2001 From: Erik Onarheim Date: Sat, 3 Aug 2024 21:36:44 -0500 Subject: [PATCH] fix: Boot Loader was preventing pixel upscaling --- CHANGELOG.md | 1 + src/engine/Director/Loader.ts | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d26a38f8a..bc932cf4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -75,6 +75,7 @@ are doing mtv adjustments during precollision. ### Fixed +- Fixed issue where the boot `ex.Loader` was removing pixelRatio override - Fixed `ex.RasterOptions`, it now extends `ex.GraphicsOptions` which is the underlying truth - Fixed issue where rayCast `filter` would not be called in hit order - Fixed issue where rayCasts would return inconsistent orderings with the `ex.SparseHashGridCollisionProcessor` strategy diff --git a/src/engine/Director/Loader.ts b/src/engine/Director/Loader.ts index a34bfb052..15d348459 100644 --- a/src/engine/Director/Loader.ts +++ b/src/engine/Director/Loader.ts @@ -319,7 +319,6 @@ export class Loader extends DefaultLoader { await this.showPlayButton(); } - private _configuredPixelRatio: number | null = null; public override async onBeforeLoad(): Promise { const image = this._image; await this._imageLoaded.promise; @@ -328,7 +327,6 @@ export class Loader extends DefaultLoader { // eslint-disable-next-line require-await public override async onAfterLoad(): Promise { - this.screen.pixelRatioOverride = this._configuredPixelRatio; this.screen.popResolutionAndViewport(); this.screen.applyResolutionAndViewport(); this.dispose();