We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02afb6c commit 83a51eeCopy full SHA for 83a51ee
1 file changed
olcPixelGameEngine.h
@@ -6319,8 +6319,8 @@ namespace olc
6319
let isFullscreen = (document.fullscreenElement != null);
6320
6321
// 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;
+ let width = (isFullscreen) ? window.innerWidth : Module.canvas.parentNode.clientWidth;
+ let height = (isFullscreen) ? window.innerHeight : Module.canvas.parentNode.clientHeight;
6324
6325
// calculate the expected viewport size
6326
let viewWidth = width;
0 commit comments