summaryrefslogtreecommitdiff
path: root/src/configmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-10 16:46:55 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-10 16:46:55 +0300
commit608dfae22e1b5145210314ca6c7268420dd639c8 (patch)
tree5f7317be7e895a1f8aede182ea69ef56d456c54f /src/configmanager.cpp
parent9eb389060d44672c311a36348036eab297859e7e (diff)
downloadmanaplus-608dfae22e1b5145210314ca6c7268420dd639c8.tar.gz
manaplus-608dfae22e1b5145210314ca6c7268420dd639c8.tar.bz2
manaplus-608dfae22e1b5145210314ca6c7268420dd639c8.tar.xz
manaplus-608dfae22e1b5145210314ca6c7268420dd639c8.zip
Fix some issues found by automatic checks.
Diffstat (limited to 'src/configmanager.cpp')
-rw-r--r--src/configmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configmanager.cpp b/src/configmanager.cpp
index 9f67ad2c5..8358aa995 100644
--- a/src/configmanager.cpp
+++ b/src/configmanager.cpp
@@ -263,7 +263,7 @@ void ConfigManager::storeSafeParameters()
enableMumble = config.getBoolValue("enableMumble");
enableMapReduce = config.getBoolValue("enableMapReduce");
- if (!settings.options.safeMode && !tmpOpengl)
+ if (!settings.options.safeMode && tmpOpengl == RenderType::RENDER_SOFTWARE)
{
// if video mode configured reset most settings to safe
config.setValue("hwaccel", false);
@@ -306,7 +306,7 @@ void ConfigManager::storeSafeParameters()
}
config.setValue("safemode", false);
- if (!tmpOpengl)
+ if (tmpOpengl == RenderType::RENDER_SOFTWARE)
{
config.setValue("hwaccel", tmpHwaccel);
config.setValue("opengl", CAST_S32(tmpOpengl));