Mercurial > sdl-ios-xcode
diff src/video/dga/SDL_dgavideo.h @ 1784:45669d4efd02
Disable the screensaver in DGA mode, which is even more important than X11...
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 08 May 2006 06:54:20 +0000 |
parents | d910939febfa |
children | 409974dedf2e |
line wrap: on
line diff
--- a/src/video/dga/SDL_dgavideo.h Mon May 08 06:38:13 2006 +0000 +++ b/src/video/dga/SDL_dgavideo.h Mon May 08 06:54:20 2006 +0000 @@ -30,6 +30,10 @@ #include "SDL_mutex.h" #include "../SDL_sysvideo.h" +#if SDL_VIDEO_DRIVER_X11_DPMS +#include <X11/extensions/dpms.h> +#endif + /* Hidden "this" pointer for the video functions */ #define _THIS SDL_VideoDevice *this @@ -86,6 +90,12 @@ #ifdef LOCK_DGA_DISPLAY SDL_mutex *event_lock; #endif + + /* Screensaver settings */ + int screensaver_timeout; +#if SDL_VIDEO_DRIVER_X11_DPMS + BOOL dpms_enabled; +#endif }; /* Old variable names */ #define DGA_Display (this->hidden->DGA_Display) @@ -107,5 +117,7 @@ #define hw_lock (this->hidden->hw_lock) #define DGA_event_base (this->hidden->event_base) #define event_lock (this->hidden->event_lock) +#define screensaver_timeout (this->hidden->screensaver_timeout) +#define dpms_enabled (this->hidden->dpms_enabled) #endif /* _SDL_dgavideo_h */