diff options
author | Bernhard Liebl <Bernhard.Liebl@gmx.org> | 2017-09-30 12:50:30 +0200 |
---|---|---|
committer | poke1024 <poke1024@gmx.de> | 2017-10-05 08:12:17 +0200 |
commit | a7f18798aab00eecd64af7b824551444cb95f1b5 (patch) | |
tree | efcf552a966457f744f7394b7b6e4916753b5142 /editor/editor_node.cpp | |
parent | 4c2b5491b57f0a33c2bc99c2966d27c9d75b338e (diff) |
fixes several scaling problems on multi monitor retina/non-retina setups on OS X
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index a04ded7b5b..ea42ff7fad 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -4588,7 +4588,8 @@ EditorNode::EditorNode() { { int dpi_mode = EditorSettings::get_singleton()->get("interface/editor/hidpi_mode"); if (dpi_mode == 0) { - editor_set_scale(OS::get_singleton()->get_screen_dpi(0) >= 192 && OS::get_singleton()->get_screen_size(OS::get_singleton()->get_current_screen()).x > 2000 ? 2.0 : 1.0); + const int screen = OS::get_singleton()->get_current_screen(); + editor_set_scale(OS::get_singleton()->get_screen_dpi(screen) >= 192 && OS::get_singleton()->get_screen_size(screen).x > 2000 ? 2.0 : 1.0); } else if (dpi_mode == 1) { editor_set_scale(0.75); } else if (dpi_mode == 2) { |