diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-25 18:03:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-25 18:03:20 +0300 |
commit | 314d315f8f1003073bbabec3188d7c1bdf395ea3 (patch) | |
tree | 5ace82272dec77c7cbe378aef06e38b09904ab19 /src/client.cpp | |
parent | a035d0001dc0cabeeda48b4cb4bcc53809c18ed8 (diff) | |
download | plus-314d315f8f1003073bbabec3188d7c1bdf395ea3.tar.gz plus-314d315f8f1003073bbabec3188d7c1bdf395ea3.tar.bz2 plus-314d315f8f1003073bbabec3188d7c1bdf395ea3.tar.xz plus-314d315f8f1003073bbabec3188d7c1bdf395ea3.zip |
Add separate flags for enable/disable gui opacity.
It need because not always possible set opacity to exact 1.0
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp index 83ea42fa7..cf4d236fe 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1667,11 +1667,12 @@ void Client::optionChanged(const std::string &name) settings.limitFps = fpsLimit > 0; WindowManager::setFramerate(fpsLimit); } - else if (name == "guialpha") + else if (name == "guialpha" || name == "enableGuiOpacity") { const float alpha = config.getFloatValue("guialpha"); settings.guiAlpha = alpha; - ImageHelper::setEnableAlpha(alpha != 1.0F); + ImageHelper::setEnableAlpha(alpha != 1.0F && + config.getBoolValue("enableGuiOpacity")); } else if (name == "gamma" || name == "enableGamma") { |