summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.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/graphicsmanager.cpp
parenta035d0001dc0cabeeda48b4cb4bcc53809c18ed8 (diff)
downloadplus-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/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index 3606c06e7..a429ac765 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -456,12 +456,13 @@ void GraphicsManager::initGraphics()
OpenGLImageHelper::setBlur(config.getBoolValue("blur"));
SurfaceImageHelper::SDLSetEnableAlphaCache(
config.getBoolValue("alphaCache") && !openGLMode);
- ImageHelper::setEnableAlpha(config.getFloatValue("guialpha") != 1.0F
- || openGLMode);
+ ImageHelper::setEnableAlpha((config.getFloatValue("guialpha") != 1.0F ||
+ openGLMode) && config.getBoolValue("enableGuiOpacity"));
#else
SurfaceImageHelper::SDLSetEnableAlphaCache(
config.getBoolValue("alphaCache"));
- ImageHelper::setEnableAlpha(config.getFloatValue("guialpha") != 1.0F);
+ ImageHelper::setEnableAlpha(config.getFloatValue("guialpha") != 1.0F &&
+ config.getBoolValue("enableGuiOpacity"));
#endif
createRenderers();
detectPixelSize();