From 04152939490aeb2d9ac87394ef876aead9b22d55 Mon Sep 17 00:00:00 2001 From: Erik Onarheim Date: Wed, 18 Sep 2024 16:08:28 -0500 Subject: [PATCH] fix: really fix loader resolution --- src/engine/Director/Loader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/Director/Loader.ts b/src/engine/Director/Loader.ts index 72b29439d..34ead1fb1 100644 --- a/src/engine/Director/Loader.ts +++ b/src/engine/Director/Loader.ts @@ -321,7 +321,7 @@ export class Loader extends DefaultLoader { public override async onBeforeLoad(): Promise { 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;