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.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/editor/editor_scale.cpp b/tools/editor/editor_scale.cpp
index c332acc0ca..8575e1c30a 100644
--- a/tools/editor/editor_scale.cpp
+++ b/tools/editor/editor_scale.cpp
@@ -1,14 +1,13 @@
#include "editor_scale.h"
#include "os/os.h"
-static bool editor_hidpi=false;
+static float scale = 1.0;
-void editor_set_hidpi(bool p_hidpi) {
+void editor_set_scale(float p_scale) {
- editor_hidpi=p_hidpi;
+ scale=p_scale;
}
+float editor_get_scale() {
-bool editor_is_hidpi() {
-
- return editor_hidpi;
+ return scale;
}