diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-11 18:39:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-11 18:39:34 +0300 |
commit | 350b3a4029d2850aa3057f25566abf8a589f487f (patch) | |
tree | 87f19e178dd827b60ef84db919d564041029390d /src/client.cpp | |
parent | 2274758726d1138a2b65535244e84225c3de5304 (diff) | |
download | mv-350b3a4029d2850aa3057f25566abf8a589f487f.tar.gz mv-350b3a4029d2850aa3057f25566abf8a589f487f.tar.bz2 mv-350b3a4029d2850aa3057f25566abf8a589f487f.tar.xz mv-350b3a4029d2850aa3057f25566abf8a589f487f.zip |
Enable best mode autodetection for linux.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client.cpp b/src/client.cpp index 9861696d4..e35a6eca8 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -505,17 +505,18 @@ void Client::gameInit() } #endif -#ifdef WIN32 - if (mOptions.test.empty() && !config.getBoolValue("videodetected")) +#ifdef USE_OPENGL + if (!mOptions.safeMode && mOptions.test.empty() + && !config.getBoolValue("videodetected")) { + config.setValue("videodetected", true); int val = graphicsManager.startDetection(); if (val >= 0 && val <= 2) config.setValue("opengl", val); - config.setValue("videodetected", true); } #endif -#if defined USE_OPENGL +#ifdef USE_OPENGL OpenGLImageHelper::setBlur(config.getBoolValue("blur")); SDLImageHelper::SDLSetEnableAlphaCache(config.getBoolValue("alphaCache") && !config.getIntValue("opengl")); |