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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user