Skip to content

Commit

Permalink
fix: really fix loader resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Sep 18, 2024
1 parent 33a9df4 commit 0415293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/Director/Loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ export class Loader extends DefaultLoader {

public override async onBeforeLoad(): Promise<void> {
this.screen.pushResolutionAndViewport();
this.screen.resolution = this.screen.viewport;
this.screen.resolution = { width: this.canvas.width, height: this.canvas.height };
this.screen.applyResolutionAndViewport();
const image = this._image;
await this._imageLoaded.promise;
Expand Down

0 comments on commit 0415293

Please sign in to comment.