From 2bab23aa4aac07c7746f572bd9f93dacf641cf24 Mon Sep 17 00:00:00 2001 From: "R. Zander" Date: Thu, 2 Jan 2025 22:01:58 +0100 Subject: [PATCH] Annotated problematic Game.width / Game.height calculation. --- frontend/src/features/core/logic/Game.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/features/core/logic/Game.ts b/frontend/src/features/core/logic/Game.ts index 963b0338..6e4cd17d 100644 --- a/frontend/src/features/core/logic/Game.ts +++ b/frontend/src/features/core/logic/Game.ts @@ -64,10 +64,12 @@ export class Game implements IGame { private backend: IBackend; public get width(): number { + // FIXME Doesn't take browser zoom into consideration return this.application.canvas.width / this.renderResolution; } public get height(): number { + // FIXME Doesn't take browser zoom into consideration return this.application.canvas.height / this.renderResolution; }