diff options
author | Tim Angus <tim@ngus.net> | 2013-01-17 13:31:30 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-08-28 10:58:28 +0100 |
commit | af45b9f4614d7018146e68832de3bccb1c73f7e7 (patch) | |
tree | f563cc4f23e453d7d1fa13e6c71ffcb7e8ec7bcd /src/sdl/sdl_gamma.c | |
parent | 7426441a5bc9c4eaf28a7f64a22df8bdaa71162c (diff) |
Use SDL 2 instead of SDL 1.2
Diffstat (limited to 'src/sdl/sdl_gamma.c')
-rw-r--r-- | src/sdl/sdl_gamma.c | 4 |
1 files changed, 3 insertions, 1 deletions
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]); } |