From af45b9f4614d7018146e68832de3bccb1c73f7e7 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Thu, 17 Jan 2013 13:31:30 +0000 Subject: Use SDL 2 instead of SDL 1.2 --- src/sdl/sdl_gamma.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sdl/sdl_gamma.c') diff --git a/src/sdl/sdl_gamma.c b/src/sdl/sdl_gamma.c index 0925a1a2..0029db18 100644 --- a/src/sdl/sdl_gamma.c +++ b/src/sdl/sdl_gamma.c @@ -30,6 +30,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "../renderercommon/tr_common.h" #include "../qcommon/qcommon.h" +extern SDL_Window *SDL_window; + /* ================= GLimp_SetGamma @@ -87,6 +89,6 @@ void GLimp_SetGamma( unsigned char red[256], unsigned char green[256], unsigned } } - SDL_SetGammaRamp(table[0], table[1], table[2]); + SDL_SetWindowGammaRamp(SDL_window, table[0], table[1], table[2]); } -- cgit