summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-25 18:03:20 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-25 18:03:20 +0300
commit314d315f8f1003073bbabec3188d7c1bdf395ea3 (patch)
tree5ace82272dec77c7cbe378aef06e38b09904ab19 /src/client.cpp
parenta035d0001dc0cabeeda48b4cb4bcc53809c18ed8 (diff)
downloadmv-314d315f8f1003073bbabec3188d7c1bdf395ea3.tar.gz
mv-314d315f8f1003073bbabec3188d7c1bdf395ea3.tar.bz2
mv-314d315f8f1003073bbabec3188d7c1bdf395ea3.tar.xz
mv-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.cpp5
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")
{