Skip to content

Commit 83a51ee

Browse files
committed
fix bad size conditions in emscripten
1 parent 02afb6c commit 83a51ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

olcPixelGameEngine.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6319,8 +6319,8 @@ namespace olc
63196319
let isFullscreen = (document.fullscreenElement != null);
63206320

63216321
// get the width of the containing element
6322-
let width = (isFullscreen || !Module.olc_AssumeDefaultShells) ? window.innerWidth : Module.canvas.parentNode.clientWidth;
6323-
let height = (isFullscreen || !Module.olc_AssumeDefaultShells) ? window.innerHeight : Module.canvas.parentNode.clientHeight;
6322+
let width = (isFullscreen) ? window.innerWidth : Module.canvas.parentNode.clientWidth;
6323+
let height = (isFullscreen) ? window.innerHeight : Module.canvas.parentNode.clientHeight;
63246324

63256325
// calculate the expected viewport size
63266326
let viewWidth = width;

0 commit comments

Comments
 (0)