comparison src/video/SDL_sysvideo.h @ 1734:f7c667ded87d SDL-1.3

The general code handles restoring video mode/gamma/etc. when the window loses focus. Support for changing fullscreen/windowed mode in progress.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 09 Jul 2006 18:09:16 +0000
parents 0b1070f2f94d
children
comparison
equal deleted inserted replaced
1733:0b1070f2f94d 1734:f7c667ded87d
122 122
123 void *userdata; 123 void *userdata;
124 void *driverdata; 124 void *driverdata;
125 }; 125 };
126 #define FULLSCREEN_VISIBLE(W) \ 126 #define FULLSCREEN_VISIBLE(W) \
127 ((W->flags & SDL_WINDOW_FULLSCREEN) && \ 127 (((W)->flags & SDL_WINDOW_FULLSCREEN) && \
128 (W->flags & SDL_WINDOW_SHOWN) && \ 128 ((W)->flags & SDL_WINDOW_SHOWN) && \
129 !(W->flags & SDL_WINDOW_MINIMIZED)) 129 !((W)->flags & SDL_WINDOW_MINIMIZED))
130 130
131 /* Define the SDL display structure 131 /* Define the SDL display structure
132 This corresponds to physical monitors attached to the system. 132 This corresponds to physical monitors attached to the system.
133 */ 133 */
134 struct SDL_VideoDisplay 134 struct SDL_VideoDisplay
423 423
424 extern void SDL_OnWindowShown(SDL_Window * window); 424 extern void SDL_OnWindowShown(SDL_Window * window);
425 extern void SDL_OnWindowHidden(SDL_Window * window); 425 extern void SDL_OnWindowHidden(SDL_Window * window);
426 extern void SDL_OnWindowFocusGained(SDL_Window * window); 426 extern void SDL_OnWindowFocusGained(SDL_Window * window);
427 extern void SDL_OnWindowFocusLost(SDL_Window * window); 427 extern void SDL_OnWindowFocusLost(SDL_Window * window);
428 extern SDL_WindowID SDL_GetFocusWindow(void);
428 429
429 #endif /* _SDL_sysvideo_h */ 430 #endif /* _SDL_sysvideo_h */
430 431
431 /* vi: set ts=4 sw=4 expandtab: */ 432 /* vi: set ts=4 sw=4 expandtab: */