Mercurial > sdl-ios-xcode
comparison src/video/SDL_gamma.c @ 3685:64ce267332c6
Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 21 Jan 2010 06:21:52 +0000 |
parents | 4b594623401b |
children | f7b03b6838cb |
comparison
equal
deleted
inserted
replaced
3684:cc564f08884f | 3685:64ce267332c6 |
---|---|
169 SDL_VideoDevice *_this = SDL_GetVideoDevice(); | 169 SDL_VideoDevice *_this = SDL_GetVideoDevice(); |
170 if (!_this) { | 170 if (!_this) { |
171 SDL_UninitializedVideo(); | 171 SDL_UninitializedVideo(); |
172 return -1; | 172 return -1; |
173 } | 173 } |
174 return SDL_SetGammaRampForDisplay(&SDL_CurrentDisplay, red, green, blue); | 174 return SDL_SetGammaRampForDisplay(SDL_CurrentDisplay, red, green, blue); |
175 } | 175 } |
176 | 176 |
177 int | 177 int |
178 SDL_GetGammaRampForDisplay(SDL_VideoDisplay * display, Uint16 * red, Uint16 * green, Uint16 * blue) | 178 SDL_GetGammaRampForDisplay(SDL_VideoDisplay * display, Uint16 * red, Uint16 * green, Uint16 * blue) |
179 { | 179 { |
228 SDL_VideoDevice *_this = SDL_GetVideoDevice(); | 228 SDL_VideoDevice *_this = SDL_GetVideoDevice(); |
229 if (!_this) { | 229 if (!_this) { |
230 SDL_UninitializedVideo(); | 230 SDL_UninitializedVideo(); |
231 return -1; | 231 return -1; |
232 } | 232 } |
233 return SDL_GetGammaRampForDisplay(&SDL_CurrentDisplay, red, green, blue); | 233 return SDL_GetGammaRampForDisplay(SDL_CurrentDisplay, red, green, blue); |
234 } | 234 } |
235 | 235 |
236 /* vi: set ts=4 sw=4 expandtab: */ | 236 /* vi: set ts=4 sw=4 expandtab: */ |