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.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/editor/editor_scale.cpp b/tools/editor/editor_scale.cpp
new file mode 100644
index 0000000000..c332acc0ca
--- /dev/null
+++ b/tools/editor/editor_scale.cpp
@@ -0,0 +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 editor_hidpi;
+}