Default allowHighDPI to false on desktop, fix initialization to set value

This commit is contained in:
Joshua Granick
2016-09-15 14:21:16 -07:00
parent 09f88c5145
commit a16499254a
3 changed files with 5 additions and 0 deletions

View File

@@ -189,6 +189,8 @@ class HXProject {
architectures = [ Architecture.X86 ];
}
defaultWindow.allowHighDPI = false;
default:

View File

@@ -77,6 +77,7 @@ class ApplicationMain {
windows: [
::foreach windows::
{
allowHighDPI: ::allowHighDPI::,
antialiasing: ::antialiasing::,
background: ::background::,
borderless: ::borderless::,

View File

@@ -1614,6 +1614,8 @@ class CommandLineTools {
}
if (field == "window-allow-high-dpi") property = "allowHighDPI";
var fieldReference = Reflect.field (overrides, fieldName);
if (Reflect.hasField (fieldReference, property)) {