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/graphicsmanager.cpp | |
parent | a035d0001dc0cabeeda48b4cb4bcc53809c18ed8 (diff) | |
download | manaplus-314d315f8f1003073bbabec3188d7c1bdf395ea3.tar.gz manaplus-314d315f8f1003073bbabec3188d7c1bdf395ea3.tar.bz2 manaplus-314d315f8f1003073bbabec3188d7c1bdf395ea3.tar.xz manaplus-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.cpp | 7 |
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(); |