Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
1783:c546353b1ad4 | 1784:45669d4efd02 |
---|---|
27 #include <X11/Xlib.h> | 27 #include <X11/Xlib.h> |
28 | 28 |
29 #include "SDL_mouse.h" | 29 #include "SDL_mouse.h" |
30 #include "SDL_mutex.h" | 30 #include "SDL_mutex.h" |
31 #include "../SDL_sysvideo.h" | 31 #include "../SDL_sysvideo.h" |
32 | |
33 #if SDL_VIDEO_DRIVER_X11_DPMS | |
34 #include <X11/extensions/dpms.h> | |
35 #endif | |
32 | 36 |
33 /* Hidden "this" pointer for the video functions */ | 37 /* Hidden "this" pointer for the video functions */ |
34 #define _THIS SDL_VideoDevice *this | 38 #define _THIS SDL_VideoDevice *this |
35 | 39 |
36 /* Define this if you need the DGA driver to be thread-safe */ | 40 /* Define this if you need the DGA driver to be thread-safe */ |
84 /* Used to handle DGA events */ | 88 /* Used to handle DGA events */ |
85 int event_base; | 89 int event_base; |
86 #ifdef LOCK_DGA_DISPLAY | 90 #ifdef LOCK_DGA_DISPLAY |
87 SDL_mutex *event_lock; | 91 SDL_mutex *event_lock; |
88 #endif | 92 #endif |
93 | |
94 /* Screensaver settings */ | |
95 int screensaver_timeout; | |
96 #if SDL_VIDEO_DRIVER_X11_DPMS | |
97 BOOL dpms_enabled; | |
98 #endif | |
89 }; | 99 }; |
90 /* Old variable names */ | 100 /* Old variable names */ |
91 #define DGA_Display (this->hidden->DGA_Display) | 101 #define DGA_Display (this->hidden->DGA_Display) |
92 #define DGA_Screen DefaultScreen(DGA_Display) | 102 #define DGA_Screen DefaultScreen(DGA_Display) |
93 #define DGA_colormap (this->hidden->DGA_colormap) | 103 #define DGA_colormap (this->hidden->DGA_colormap) |
105 #define surfaces_memtotal (this->hidden->surfaces_memtotal) | 115 #define surfaces_memtotal (this->hidden->surfaces_memtotal) |
106 #define surfaces_memleft (this->hidden->surfaces_memleft) | 116 #define surfaces_memleft (this->hidden->surfaces_memleft) |
107 #define hw_lock (this->hidden->hw_lock) | 117 #define hw_lock (this->hidden->hw_lock) |
108 #define DGA_event_base (this->hidden->event_base) | 118 #define DGA_event_base (this->hidden->event_base) |
109 #define event_lock (this->hidden->event_lock) | 119 #define event_lock (this->hidden->event_lock) |
120 #define screensaver_timeout (this->hidden->screensaver_timeout) | |
121 #define dpms_enabled (this->hidden->dpms_enabled) | |
110 | 122 |
111 #endif /* _SDL_dgavideo_h */ | 123 #endif /* _SDL_dgavideo_h */ |