Fix a few property warnings on Globals access

Hand-picked from 515f92d03b.
This commit is contained in:
Rémi Verschelde
2017-05-26 18:46:59 +02:00
parent 9b1ee4cd66
commit fec8e2549c
3 changed files with 6 additions and 3 deletions

View File

@@ -672,7 +672,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
video_mode.width = globals->get("display/width");
if (!force_res && use_custom_res && globals->has("display/height"))
video_mode.height = globals->get("display/height");
if (!editor && (!bool(globals->get("display/allow_hidpi")) || force_lowdpi)) {
if (!editor && ((globals->has("display/allow_hidpi") && !globals->get("display/allow_hidpi")) || force_lowdpi)) {
OS::get_singleton()->_allow_hidpi = false;
}
if (use_custom_res && globals->has("display/fullscreen"))