diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-24 13:57:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:17 +0300 |
commit | ed77e8fb99e16e72cde0e163a9b58c5cefd8d05d (patch) | |
tree | 42688472bb292ff287b1829826d0b873a21b96d6 /src/utils/sdlhelper.cpp | |
parent | 2652836af364935294a2c731de74502de530f9e6 (diff) | |
download | mv-ed77e8fb99e16e72cde0e163a9b58c5cefd8d05d.tar.gz mv-ed77e8fb99e16e72cde0e163a9b58c5cefd8d05d.tar.bz2 mv-ed77e8fb99e16e72cde0e163a9b58c5cefd8d05d.tar.xz mv-ed77e8fb99e16e72cde0e163a9b58c5cefd8d05d.zip |
move some function to sdl helper.
Diffstat (limited to 'src/utils/sdlhelper.cpp')
-rw-r--r-- | src/utils/sdlhelper.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils/sdlhelper.cpp b/src/utils/sdlhelper.cpp index a470ce927..2690554be 100644 --- a/src/utils/sdlhelper.cpp +++ b/src/utils/sdlhelper.cpp @@ -78,4 +78,14 @@ void SDL::grabInput(SDL_Surface *const window A_UNUSED, const bool grab) SDL_WM_GrabInput(grab ? SDL_GRAB_ON : SDL_GRAB_OFF); } +void SDL::setGamma(SDL_Surface *const window A_UNUSED, const float gamma) +{ + SDL_SetGamma(gamma, gamma, gamma) +} + +void SDL::setVsync(const int val) +{ + SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, val); +} + #endif // USE_SDL2 |