summaryrefslogtreecommitdiff
path: root/tools/editor/editor_scale.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/editor/editor_scale.cpp')
-rw-r--r--tools/editor/editor_scale.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/editor/editor_scale.cpp b/tools/editor/editor_scale.cpp
index ecb1e1816f..c332acc0ca 100644
--- a/tools/editor/editor_scale.cpp
+++ b/tools/editor/editor_scale.cpp
@@ -1,7 +1,14 @@
#include "editor_scale.h"
#include "os/os.h"
+static bool editor_hidpi=false;
+
+void editor_set_hidpi(bool p_hidpi) {
+
+ editor_hidpi=p_hidpi;
+}
+
bool editor_is_hidpi() {
- return OS::get_singleton()->get_screen_dpi(0) > 150;
+ return editor_hidpi;
}