mirror of
https://github.com/godotengine/godot.git
synced 2024-12-03 09:52:18 +08:00
8bcb6a290c
-Improved HiDPI detection (requires resolution of > 2000 in X axis)
14 lines
176 B
C++
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;
|
|
}
|