Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/src/video/SDL_sysvideo.h Sun Jul 09 09:02:26 2006 +0000 +++ b/src/video/SDL_sysvideo.h Sun Jul 09 18:09:16 2006 +0000 @@ -124,9 +124,9 @@ void *driverdata; }; #define FULLSCREEN_VISIBLE(W) \ - ((W->flags & SDL_WINDOW_FULLSCREEN) && \ - (W->flags & SDL_WINDOW_SHOWN) && \ - !(W->flags & SDL_WINDOW_MINIMIZED)) + (((W)->flags & SDL_WINDOW_FULLSCREEN) && \ + ((W)->flags & SDL_WINDOW_SHOWN) && \ + !((W)->flags & SDL_WINDOW_MINIMIZED)) /* Define the SDL display structure This corresponds to physical monitors attached to the system. @@ -425,6 +425,7 @@ extern void SDL_OnWindowHidden(SDL_Window * window); extern void SDL_OnWindowFocusGained(SDL_Window * window); extern void SDL_OnWindowFocusLost(SDL_Window * window); +extern SDL_WindowID SDL_GetFocusWindow(void); #endif /* _SDL_sysvideo_h */