diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-03-31 20:57:43 +0200 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-03-31 20:57:43 +0200 |
| commit | 18b2fb6c9342853fe1efc4ce9a90a0db1ae1528a (patch) | |
| tree | 0c7bf60b4c18d24288b7aa19342bb1139f7de56e | |
| parent | 4c5b1bcad6c8433c1d1358f433dc7ccad3722def (diff) | |
UnitySettings: never allow values minor or equal to 0 as UI scale
(bzr r3748.2.7)
| -rw-r--r-- | unity-shared/UnitySettings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unity-shared/UnitySettings.cpp b/unity-shared/UnitySettings.cpp index 9ab201a5e..9b91786cc 100644 --- a/unity-shared/UnitySettings.cpp +++ b/unity-shared/UnitySettings.cpp @@ -262,7 +262,7 @@ public: double ui_scale = 1.0f; int value; - if (g_variant_lookup(dict, monitor_name.c_str(), "i", &value)) + if (g_variant_lookup(dict, monitor_name.c_str(), "i", &value) && value > 0) ui_scale = static_cast<double>(value)/8.0f; if (app_target_monitor.Str() == monitor_name) |
