diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-22 01:30:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-22 01:30:47 +0300 |
commit | 5bf1ce172ec746b030cc2d9bbd37f95ac402f684 (patch) | |
tree | e17e71df34fb50367da777f67949e3afa26d8ede /src/client.cpp | |
parent | 6f47614ffebe771a786afee07013a674bea04a8c (diff) | |
download | mv-5bf1ce172ec746b030cc2d9bbd37f95ac402f684.tar.gz mv-5bf1ce172ec746b030cc2d9bbd37f95ac402f684.tar.bz2 mv-5bf1ce172ec746b030cc2d9bbd37f95ac402f684.tar.xz mv-5bf1ce172ec746b030cc2d9bbd37f95ac402f684.zip |
dehardcode render values.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/client.cpp b/src/client.cpp index 946c4481b..01c114aff 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -2076,16 +2076,16 @@ void Client::initConfiguration() const config.setValue("hwaccel", false); #ifdef USE_OPENGL #if (defined __APPLE__) - config.setValue("opengl", 1); + config.setValue("opengl", static_cast<int>(RENDER_NORMAL_OPENGL)); #elif (defined ANDROID) - config.setValue("opengl", 3); + config.setValue("opengl", static_cast<int>(RENDER_GLES_OPENGL)); #elif (defined WIN32) - config.setValue("opengl", 2); + config.setValue("opengl", static_cast<int>(RENDER_SAFE_OPENGL)); #else - config.setValue("opengl", 0); + config.setValue("opengl", static_cast<int>(RENDER_SOFTWARE)); #endif #else - config.setValue("opengl", 0); + config.setValue("opengl", static_cast<int>(RENDER_SOFTWARE)); #endif config.setValue("screen", false); config.setValue("sound", true); @@ -2350,11 +2350,11 @@ void Client::storeSafeParameters() const config.setValue("hwaccel", false); #if defined(ANDROID) - config.setValue("opengl", 2); + config.setValue("opengl", static_cast<int>(RENDER_GLES_OPENGL)); #elif defined(__APPLE__) - config.setValue("opengl", 1); + config.setValue("opengl", static_cast<int>(RENDER_NORMAL_OPENGL)); #else - config.setValue("opengl", 0); + config.setValue("opengl", static_cast<int>(RENDER_SOFTWARE)); #endif config.setValue("altfpslimit", 3); config.setValue("sound", false); @@ -2379,13 +2379,14 @@ void Client::storeSafeParameters() const else { // if video mode not configured reset only video mode to safe - config.setValue("opengl", 0); #ifdef ANDROID config.setValue("screenwidth", 0); config.setValue("screenheight", 0); + config.setValue("opengl", static_cast<int>(RENDER_GLES_OPENGL)); #else config.setValue("screenwidth", 640); config.setValue("screenheight", 480); + config.setValue("opengl", static_cast<int>(RENDER_SOFTWARE)); #endif } |