Mercurial > sdl-ios-xcode
comparison src/video/SDL_sysvideo.h @ 1668:4da1ee79c9af SDL-1.3
more tweaking indent options
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 29 May 2006 04:04:35 +0000 |
parents | 6e7ec5cb83c3 |
children | 9857d21967bb |
comparison
equal
deleted
inserted
replaced
1667:1fddae038bc8 | 1668:4da1ee79c9af |
---|---|
137 */ | 137 */ |
138 int (*SetWindowColors) (_THIS, SDL_Window * window, | 138 int (*SetWindowColors) (_THIS, SDL_Window * window, |
139 int firstcolor, int ncolors, SDL_Color * colors); | 139 int firstcolor, int ncolors, SDL_Color * colors); |
140 | 140 |
141 /* Get some platform dependent window information */ | 141 /* Get some platform dependent window information */ |
142 SDL_bool (*GetWindowWMInfo) (_THIS, SDL_Window * window, | 142 SDL_bool(*GetWindowWMInfo) (_THIS, SDL_Window * window, |
143 SDL_SysWMinfo * info); | 143 SDL_SysWMinfo * info); |
144 | 144 |
145 /* Create a YUV video surface (possibly overlay) of the given | 145 /* Create a YUV video surface (possibly overlay) of the given |
146 format. The hardware should be able to perform at least 2x | 146 format. The hardware should be able to perform at least 2x |
147 scaling on display. | 147 scaling on display. |
148 */ | 148 */ |
430 #define SDL_CurrentWindow (SDL_CurrentDisplay.windows[0]) | 430 #define SDL_CurrentWindow (SDL_CurrentDisplay.windows[0]) |
431 #define SDL_VideoSurface ((_this && SDL_CurrentDisplay.num_windows > 0) ? SDL_CurrentWindow.surface : NULL) | 431 #define SDL_VideoSurface ((_this && SDL_CurrentDisplay.num_windows > 0) ? SDL_CurrentWindow.surface : NULL) |
432 #define SDL_ShadowSurface ((_this && SDL_CurrentDisplay.num_windows > 0) ? SDL_CurrentWindow.shadow : NULL) | 432 #define SDL_ShadowSurface ((_this && SDL_CurrentDisplay.num_windows > 0) ? SDL_CurrentWindow.shadow : NULL) |
433 #define SDL_PublicSurface (SDL_ShadowSurface ? SDL_ShadowSurface : SDL_VideoSurface) | 433 #define SDL_PublicSurface (SDL_ShadowSurface ? SDL_ShadowSurface : SDL_VideoSurface) |
434 | 434 |
435 extern SDL_VideoDevice *SDL_GetVideoDevice (); | 435 extern SDL_VideoDevice *SDL_GetVideoDevice(); |
436 extern void SDL_AddBasicVideoDisplay (const SDL_DisplayMode * desktop_mode); | 436 extern void SDL_AddBasicVideoDisplay(const SDL_DisplayMode * desktop_mode); |
437 extern void SDL_AddVideoDisplay (SDL_VideoDisplay * display); | 437 extern void SDL_AddVideoDisplay(SDL_VideoDisplay * display); |
438 extern void SDL_AddDisplayMode (int display, const SDL_DisplayMode * mode); | 438 extern void SDL_AddDisplayMode(int display, const SDL_DisplayMode * mode); |
439 extern SDL_Window *SDL_GetWindowFromSurface (SDL_Surface * surface); | 439 extern SDL_Window *SDL_GetWindowFromSurface(SDL_Surface * surface); |
440 | 440 |
441 #endif /* _SDL_sysvideo_h */ | 441 #endif /* _SDL_sysvideo_h */ |
442 | 442 |
443 /* vi: set ts=4 sw=4 expandtab: */ | 443 /* vi: set ts=4 sw=4 expandtab: */ |