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
This commit is contained in:
Josh Tynjala
2021-10-19 18:05:33 -07:00
parent b17bc6100b
commit f6fb941c99

View File

@@ -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;