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