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/sdl2helper.cpp | |
parent | 2652836af364935294a2c731de74502de530f9e6 (diff) | |
download | manaplus-ed77e8fb99e16e72cde0e163a9b58c5cefd8d05d.tar.gz manaplus-ed77e8fb99e16e72cde0e163a9b58c5cefd8d05d.tar.bz2 manaplus-ed77e8fb99e16e72cde0e163a9b58c5cefd8d05d.tar.xz manaplus-ed77e8fb99e16e72cde0e163a9b58c5cefd8d05d.zip |
move some function to sdl helper.
Diffstat (limited to 'src/utils/sdl2helper.cpp')
-rw-r--r-- | src/utils/sdl2helper.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils/sdl2helper.cpp b/src/utils/sdl2helper.cpp index 442d40990..33a88cc8a 100644 --- a/src/utils/sdl2helper.cpp +++ b/src/utils/sdl2helper.cpp @@ -52,4 +52,14 @@ void SDL::grabInput(SDL_Window *const window, const bool grab) SDL_SetWindowGrab(window, grab ? SDL_TRUE : SDL_FALSE); } +void SDL::setGamma(SDL_Window *const window, const float gamma) +{ + SDL_SetWindowBrightness(window, gamma); +} + +void SDL::setVsync(const int val) +{ + SDL_GL_SetSwapInterval(val); +} + #endif // USE_SDL2 |