comparison src/video/SDL_sysvideo.h @ 1725:98a3207ddde8 SDL-1.3

Implemented Win32 video mode support
author Sam Lantinga <slouken@libsdl.org>
date Fri, 07 Jul 2006 08:05:39 +0000
parents a1ebb17f9c52
children 0ef52d56e8bb
comparison
equal deleted inserted replaced
1724:6c63fc2bd986 1725:98a3207ddde8
129 /* Define the SDL display structure 129 /* Define the SDL display structure
130 This corresponds to physical monitors attached to the system. 130 This corresponds to physical monitors attached to the system.
131 */ 131 */
132 struct SDL_VideoDisplay 132 struct SDL_VideoDisplay
133 { 133 {
134 int max_display_modes;
134 int num_display_modes; 135 int num_display_modes;
135 SDL_DisplayMode *display_modes; 136 SDL_DisplayMode *display_modes;
136 SDL_DisplayMode desktop_mode; 137 SDL_DisplayMode desktop_mode;
137 SDL_DisplayMode current_mode; 138 SDL_DisplayMode current_mode;
138 SDL_Palette *palette; 139 SDL_Palette *palette;
176 /* Setting the display mode is independent of creating windows, 177 /* Setting the display mode is independent of creating windows,
177 * so when the display mode is changed, all existing windows 178 * so when the display mode is changed, all existing windows
178 * should have their data updated accordingly, including the 179 * should have their data updated accordingly, including the
179 * display surfaces associated with them. 180 * display surfaces associated with them.
180 */ 181 */
181 int (*SetDisplayMode) (_THIS, const SDL_DisplayMode * mode); 182 int (*SetDisplayMode) (_THIS, SDL_DisplayMode * mode);
182 183
183 /* Sets the color entries of the display palette to those in 'colors'. 184 /* Sets the color entries of the display palette to those in 'colors'.
184 The return value is 0 if all entries could be set properly or -1 185 The return value is 0 if all entries could be set properly or -1
185 otherwise. 186 otherwise.
186 */ 187 */
408 #define SDL_CurrentWindow (SDL_CurrentDisplay.windows[0]) 409 #define SDL_CurrentWindow (SDL_CurrentDisplay.windows[0])
409 410
410 extern SDL_VideoDevice *SDL_GetVideoDevice(); 411 extern SDL_VideoDevice *SDL_GetVideoDevice();
411 extern int SDL_AddBasicVideoDisplay(const SDL_DisplayMode * desktop_mode); 412 extern int SDL_AddBasicVideoDisplay(const SDL_DisplayMode * desktop_mode);
412 extern int SDL_AddVideoDisplay(const SDL_VideoDisplay * display); 413 extern int SDL_AddVideoDisplay(const SDL_VideoDisplay * display);
413 extern void SDL_AddDisplayMode(int displayIndex, 414 extern SDL_bool SDL_AddDisplayMode(int displayIndex,
414 const SDL_DisplayMode * mode); 415 const SDL_DisplayMode * mode);
415 extern void SDL_AddRenderDriver(int displayIndex, 416 extern void SDL_AddRenderDriver(int displayIndex,
416 const SDL_RenderDriver * driver); 417 const SDL_RenderDriver * driver);
417 418
418 extern SDL_Window *SDL_GetWindowFromID(SDL_WindowID windowID); 419 extern SDL_Window *SDL_GetWindowFromID(SDL_WindowID windowID);
419 extern SDL_VideoDisplay *SDL_GetDisplayFromWindow(SDL_Window * window); 420 extern SDL_VideoDisplay *SDL_GetDisplayFromWindow(SDL_Window * window);