diff src/video/SDL_sysvideo.h @ 3025:54fac87e1f34

Added an API to enable/disable the screen saver. The screensaver is disabled by default when using SDL 1.2 compatibility. Use the new XScreenSaver extension, removed unused DPMS extension.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 12 Jan 2009 06:19:05 +0000
parents e4a469d6ddab
children 089a77aebb7d
line wrap: on
line diff
--- a/src/video/SDL_sysvideo.h	Sun Jan 11 23:56:19 2009 +0000
+++ b/src/video/SDL_sysvideo.h	Mon Jan 12 06:19:05 2009 +0000
@@ -273,8 +273,12 @@
      */
     void (*PumpEvents) (_THIS);
 
+    /* Suspend the screensaver */
+    void (*SuspendScreenSaver) (_THIS);
+
     /* * * */
     /* Data common to all drivers */
+    SDL_bool suspend_screensaver;
     int num_displays;
     SDL_VideoDisplay *displays;
     int current_display;