diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-22 14:47:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:15 +0300 |
commit | 5e4fcb8a6036746ec1b500297fa55989a80094b4 (patch) | |
tree | 915d788dcaf3bc39bed6985236fb879c3c93f6cb /src/client.cpp | |
parent | 2480ea4cc668ff99007dd6fb8b44911eea5d5287 (diff) | |
download | manaverse-5e4fcb8a6036746ec1b500297fa55989a80094b4.tar.gz manaverse-5e4fcb8a6036746ec1b500297fa55989a80094b4.tar.bz2 manaverse-5e4fcb8a6036746ec1b500297fa55989a80094b4.tar.xz manaverse-5e4fcb8a6036746ec1b500297fa55989a80094b4.zip |
final SDL2 compilation fixes.
now it can be compiled, but still not works.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp index 7c04e807e..aeee05c1f 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -2906,7 +2906,8 @@ void Client::applyGamma() { const float val = config.getFloatValue("gamma"); #ifdef USE_SDL2 - SDL_SetWindowBrightness(mWindow, val); + if (mainGraphics) + SDL_SetWindowBrightness(mainGraphics->getWindow(), val); #else SDL_SetGamma(val, val, val); #endif |