summaryrefslogtreecommitdiff
path: root/src/utils/sdl2helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/sdl2helper.cpp')
-rw-r--r--src/utils/sdl2helper.cpp10
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