diff options
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(); |