comparison src/video/SDL_sysvideo.h @ 5248:3a8a452b49f0

Removed gamma support since it wasn't widely used and not well supported.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 10 Feb 2011 11:39:08 -0800
parents b9cf75615028
children 762e40fb8e28
comparison
equal deleted inserted replaced
5247:78ce7bfd0faf 5248:3a8a452b49f0
108 SDL_DisplayMode *display_modes; 108 SDL_DisplayMode *display_modes;
109 SDL_DisplayMode desktop_mode; 109 SDL_DisplayMode desktop_mode;
110 SDL_DisplayMode current_mode; 110 SDL_DisplayMode current_mode;
111 SDL_bool updating_fullscreen; 111 SDL_bool updating_fullscreen;
112 112
113 Uint16 *gamma;
114 Uint16 *saved_gamma; /* (just offset into gamma) */
115
116 SDL_Window *windows; 113 SDL_Window *windows;
117 SDL_Window *fullscreen_window; 114 SDL_Window *fullscreen_window;
118 115
119 SDL_VideoDevice *device; 116 SDL_VideoDevice *device;
120 117
166 * when the display mode is changed, all existing windows should have 163 * when the display mode is changed, all existing windows should have
167 * their data updated accordingly, including the display surfaces 164 * their data updated accordingly, including the display surfaces
168 * associated with them. 165 * associated with them.
169 */ 166 */
170 int (*SetDisplayMode) (_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode); 167 int (*SetDisplayMode) (_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode);
171
172 /* Set the gamma ramp */
173 int (*SetDisplayGammaRamp) (_THIS, SDL_VideoDisplay * display, Uint16 * ramp);
174
175 /* Get the gamma ramp */
176 int (*GetDisplayGammaRamp) (_THIS, SDL_VideoDisplay * display, Uint16 * ramp);
177 168
178 /* * * */ 169 /* * * */
179 /* 170 /*
180 * Window functions 171 * Window functions
181 */ 172 */
341 extern int SDL_GetDisplayModeForDisplay(SDL_VideoDisplay * display, int index, SDL_DisplayMode * mode); 332 extern int SDL_GetDisplayModeForDisplay(SDL_VideoDisplay * display, int index, SDL_DisplayMode * mode);
342 extern int SDL_GetDesktopDisplayModeForDisplay(SDL_VideoDisplay * display, SDL_DisplayMode * mode); 333 extern int SDL_GetDesktopDisplayModeForDisplay(SDL_VideoDisplay * display, SDL_DisplayMode * mode);
343 extern int SDL_GetCurrentDisplayModeForDisplay(SDL_VideoDisplay * display, SDL_DisplayMode * mode); 334 extern int SDL_GetCurrentDisplayModeForDisplay(SDL_VideoDisplay * display, SDL_DisplayMode * mode);
344 extern SDL_DisplayMode * SDL_GetClosestDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode * mode, SDL_DisplayMode * closest); 335 extern SDL_DisplayMode * SDL_GetClosestDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode * mode, SDL_DisplayMode * closest);
345 extern int SDL_SetDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode * mode); 336 extern int SDL_SetDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode * mode);
346 extern int SDL_SetGammaRampForDisplay(SDL_VideoDisplay * display, const Uint16 * red, const Uint16 * green, const Uint16 * blue);
347 extern int SDL_GetGammaRampForDisplay(SDL_VideoDisplay * display, Uint16 * red, Uint16 * green, Uint16 * blue);
348 337
349 extern int SDL_RecreateWindow(SDL_Window * window, Uint32 flags); 338 extern int SDL_RecreateWindow(SDL_Window * window, Uint32 flags);
350 339
351 extern void SDL_OnWindowShown(SDL_Window * window); 340 extern void SDL_OnWindowShown(SDL_Window * window);
352 extern void SDL_OnWindowHidden(SDL_Window * window); 341 extern void SDL_OnWindowHidden(SDL_Window * window);