Skip to content

Commit

Permalink
fix: Boot Loader was preventing pixel upscaling
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Aug 4, 2024
1 parent ea03b22 commit 2e4341f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions src/engine/Director/Loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ export class Loader extends DefaultLoader {
await this.showPlayButton();
}

private _configuredPixelRatio: number | null = null;
public override async onBeforeLoad(): Promise<void> {
const image = this._image;
await this._imageLoaded.promise;
Expand All @@ -328,7 +327,6 @@ export class Loader extends DefaultLoader {

// eslint-disable-next-line require-await
public override async onAfterLoad(): Promise<void> {
this.screen.pixelRatioOverride = this._configuredPixelRatio;
this.screen.popResolutionAndViewport();
this.screen.applyResolutionAndViewport();
this.dispose();
Expand Down

0 comments on commit 2e4341f

Please sign in to comment.