|
@@ -774,6 +774,9 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
|
GLOBAL_DEF("rendering/quality/intended_usage/framebuffer_allocation", 2);
|
|
GLOBAL_DEF("rendering/quality/intended_usage/framebuffer_allocation", 2);
|
|
GLOBAL_DEF("rendering/quality/intended_usage/framebuffer_allocation.mobile", 3);
|
|
GLOBAL_DEF("rendering/quality/intended_usage/framebuffer_allocation.mobile", 3);
|
|
|
|
|
|
|
|
+ if (editor) {
|
|
|
|
+ OS::get_singleton()->_allow_hidpi = true; //editors always in hidpi
|
|
|
|
+ }
|
|
Engine::get_singleton()->_pixel_snap = GLOBAL_DEF("rendering/quality/2d/use_pixel_snap", false);
|
|
Engine::get_singleton()->_pixel_snap = GLOBAL_DEF("rendering/quality/2d/use_pixel_snap", false);
|
|
OS::get_singleton()->_keep_screen_on = GLOBAL_DEF("display/window/energy_saving/keep_screen_on", true);
|
|
OS::get_singleton()->_keep_screen_on = GLOBAL_DEF("display/window/energy_saving/keep_screen_on", true);
|
|
if (rtm == -1) {
|
|
if (rtm == -1) {
|