diff options
| author | Juan Linietsky <reduzio@gmail.com> | 2017-10-05 16:41:42 -0300 |
|---|---|---|
| committer | Juan Linietsky <reduzio@gmail.com> | 2017-10-05 16:41:42 -0300 |
| commit | d938de67fff288bf7f0a92fd51a2e890a1b5f245 (patch) | |
| tree | 7b2e915fa45509e88c725af81cc18dfb6a3f4e2f /main | |
| parent | 3d87b70f7a8cadaab581c481fcc51622e8043ee0 (diff) | |
| download | redot-engine-d938de67fff288bf7f0a92fd51a2e890a1b5f245.tar.gz | |
Make sure to obey hidpi to off by default, as present in project settings. Set it to on by default for editor.
Many integrated GPUs can't really get enough performance to play games at hidpi, so this should be enabled manually.
Diffstat (limited to 'main')
| -rw-r--r-- | main/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp index bc227060fe..e06f423bfc 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -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.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); OS::get_singleton()->_keep_screen_on = GLOBAL_DEF("display/window/energy_saving/keep_screen_on", true); if (rtm == -1) { |
