From f6fb941c997716094d792e60f7ee84d58ebd1ce3 Mon Sep 17 00:00:00 2001 From: Josh Tynjala Date: Tue, 19 Oct 2021 18:05:33 -0700 Subject: [PATCH] Electron window width/height should default to 0, the same as html5, for consistency Before this change, html5 would automatically resize the stage if the window resized, but electron would be letterboxed. They should both automatically resize the stage when the window is resized --- src/lime/tools/HXProject.hx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/lime/tools/HXProject.hx b/src/lime/tools/HXProject.hx index b5ece9f14..9a6c69aaf 100644 --- a/src/lime/tools/HXProject.hx +++ b/src/lime/tools/HXProject.hx @@ -205,16 +205,8 @@ class HXProject extends Script platformType = PlatformType.WEB; architectures = []; - if (!targetFlags.exists("electron")) - { - defaultWindow.width = 0; - defaultWindow.height = 0; - } - else - { - // platformType = PlatformType.DESKTOP; - } - + defaultWindow.width = 0; + defaultWindow.height = 0; defaultWindow.fps = 60; defaultWindow.allowHighDPI = false;