godot/tools/editor/editor_scale.cpp
Juan Linietsky 8bcb6a290c -Added VeryLowDPI and MidDPI modes to Godot editor.
-Improved HiDPI detection (requires resolution of > 2000 in X axis)
2016-09-13 11:05:47 -03:00

14 lines
176 B
C++

#include "editor_scale.h"
#include "os/os.h"
static float scale = 1.0;
void editor_set_scale(float p_scale) {
scale=p_scale;
}
float editor_get_scale() {
return scale;
}