summaryrefslogtreecommitdiffstats
path: root/platform/web/js/libs/library_godot_display.js
diff options
context:
space:
mode:
Diffstat (limited to 'platform/web/js/libs/library_godot_display.js')
-rw-r--r--platform/web/js/libs/library_godot_display.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/web/js/libs/library_godot_display.js b/platform/web/js/libs/library_godot_display.js
index 746f858923..c60e6899f2 100644
--- a/platform/web/js/libs/library_godot_display.js
+++ b/platform/web/js/libs/library_godot_display.js
@@ -289,11 +289,11 @@ const GodotDisplayScreen = {
const isFullscreen = GodotDisplayScreen.isFullscreen();
const wantsFullWindow = GodotConfig.canvas_resize_policy === 2;
const noResize = GodotConfig.canvas_resize_policy === 0;
- const wwidth = GodotDisplayScreen.desired_size[0];
- const wheight = GodotDisplayScreen.desired_size[1];
+ const dWidth = GodotDisplayScreen.desired_size[0];
+ const dHeight = GodotDisplayScreen.desired_size[1];
const canvas = GodotConfig.canvas;
- let width = wwidth;
- let height = wheight;
+ let width = dWidth;
+ let height = dHeight;
if (noResize) {
// Don't resize canvas, just update GL if needed.
if (canvas.width !== width || canvas.height !== height) {