src/video/x11/SDL_x11video.h
changeset 1783 c546353b1ad4
parent 1765 c2c6ff414ef5
child 1791 5652192b9c8b
     1.1 --- a/src/video/x11/SDL_x11video.h	Mon May 08 06:23:11 2006 +0000
     1.2 +++ b/src/video/x11/SDL_x11video.h	Mon May 08 06:38:13 2006 +0000
     1.3 @@ -46,6 +46,9 @@
     1.4  #if SDL_VIDEO_DRIVER_X11_XME
     1.5  #include "../Xext/extensions/xme.h"
     1.6  #endif
     1.7 +#if SDL_VIDEO_DRIVER_X11_DPMS
     1.8 +#include <X11/extensions/dpms.h>
     1.9 +#endif
    1.10  
    1.11  #include "SDL_x11dyn.h"
    1.12  
    1.13 @@ -151,6 +154,12 @@
    1.14      int gamma_changed;		/* flag: has VidMode gamma been modified? */
    1.15  
    1.16      short *iconcolors;		/* List of colors used by the icon */
    1.17 +
    1.18 +    /* Screensaver settings */
    1.19 +    int screensaver_timeout;
    1.20 +#if SDL_VIDEO_DRIVER_X11_DPMS
    1.21 +    BOOL dpms_enabled;
    1.22 +#endif
    1.23  };
    1.24  
    1.25  /* Old variable names */
    1.26 @@ -201,6 +210,8 @@
    1.27  #define gamma_saved		(this->hidden->gamma_saved)
    1.28  #define gamma_changed		(this->hidden->gamma_changed)
    1.29  #define SDL_iconcolors		(this->hidden->iconcolors)
    1.30 +#define screensaver_timeout	(this->hidden->screensaver_timeout)
    1.31 +#define dpms_enabled		(this->hidden->dpms_enabled)
    1.32  /* Some versions of XFree86 have bugs - detect if this is one of them */
    1.33  #define BUGGY_XFREE86(condition, buggy_version) \
    1.34  ((SDL_strcmp(ServerVendor(SDL_Display), "The XFree86 Project, Inc") == 0) && \