diff options
author | kobewi <kobewi4e@gmail.com> | 2022-05-12 16:38:59 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-05-12 16:38:59 +0200 |
commit | 739242dd04d16f85d542bcf9a29aa44402410481 (patch) | |
tree | 0ded906beb57fcb2861cbee4c03a8c04d93dcdcc /main | |
parent | ea9064c01f27351369c5c89d2c320ab051c47802 (diff) |
Move Display settings higher in the list
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/main/main.cpp b/main/main.cpp index 9747f5aa11..b3ed47b01a 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1328,35 +1328,6 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph // always convert to lower case for consistency in the code rendering_driver = rendering_driver.to_lower(); - GLOBAL_DEF_BASIC("display/window/size/viewport_width", 1024); - ProjectSettings::get_singleton()->set_custom_property_info("display/window/size/viewport_width", - PropertyInfo(Variant::INT, "display/window/size/viewport_width", - PROPERTY_HINT_RANGE, - "0,7680,1,or_greater")); // 8K resolution - - GLOBAL_DEF_BASIC("display/window/size/viewport_height", 600); - ProjectSettings::get_singleton()->set_custom_property_info("display/window/size/viewport_height", - PropertyInfo(Variant::INT, "display/window/size/viewport_height", - PROPERTY_HINT_RANGE, - "0,4320,1,or_greater")); // 8K resolution - - GLOBAL_DEF_BASIC("display/window/size/resizable", true); - GLOBAL_DEF_BASIC("display/window/size/borderless", false); - GLOBAL_DEF_BASIC("display/window/size/fullscreen", false); - GLOBAL_DEF("display/window/size/always_on_top", false); - GLOBAL_DEF("display/window/size/window_width_override", 0); - ProjectSettings::get_singleton()->set_custom_property_info("display/window/size/window_width_override", - PropertyInfo(Variant::INT, - "display/window/size/window_width_override", - PROPERTY_HINT_RANGE, - "0,7680,1,or_greater")); // 8K resolution - GLOBAL_DEF("display/window/size/window_height_override", 0); - ProjectSettings::get_singleton()->set_custom_property_info("display/window/size/window_height_override", - PropertyInfo(Variant::INT, - "display/window/size/window_height_override", - PROPERTY_HINT_RANGE, - "0,4320,1,or_greater")); // 8K resolution - if (use_custom_res) { if (!force_res) { window_size.width = GLOBAL_GET("display/window/size/viewport_width"); |