forked from sascha/godot
make hdpi manually configurable in project settings
also added hidpi support to project manager2.1
parent
8d497301d4
commit
684a1207c0
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue