Mercurial > sdl-ios-xcode
comparison src/video/quartz/SDL_QuartzVideo.h @ 3936:c5c3c772f5aa SDL-1.2
Let app set SDL_VIDEO_ALLOW_SCREENSAVER environment variable to override SDL's
attempt to disable screen savers. Works for Quartz (Mac OS X) and X11.
Need a formal API for this in 1.3, still.
Fixes Bugzilla #415.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Fri, 06 Apr 2007 20:30:41 +0000 |
parents | 81f66f258d77 |
children | 60f677630282 |
comparison
equal
deleted
inserted
replaced
3935:00959c391aa6 | 3936:c5c3c772f5aa |
---|---|
78 | 78 |
79 | 79 |
80 /* Main driver structure to store required state information */ | 80 /* Main driver structure to store required state information */ |
81 typedef struct SDL_PrivateVideoData { | 81 typedef struct SDL_PrivateVideoData { |
82 | 82 |
83 BOOL allow_screensaver; /* 0 == disable screensaver */ | |
83 CGDirectDisplayID display; /* 0 == main display (only support single display) */ | 84 CGDirectDisplayID display; /* 0 == main display (only support single display) */ |
84 CFDictionaryRef mode; /* current mode of the display */ | 85 CFDictionaryRef mode; /* current mode of the display */ |
85 CFDictionaryRef save_mode; /* original mode of the display */ | 86 CFDictionaryRef save_mode; /* original mode of the display */ |
86 CFArrayRef mode_list; /* list of available fullscreen modes */ | 87 CFArrayRef mode_list; /* list of available fullscreen modes */ |
87 CGDirectPaletteRef palette; /* palette of an 8-bit display */ | 88 CGDirectPaletteRef palette; /* palette of an 8-bit display */ |
125 | 126 |
126 #define _THIS SDL_VideoDevice *this | 127 #define _THIS SDL_VideoDevice *this |
127 #define display_id (this->hidden->display) | 128 #define display_id (this->hidden->display) |
128 #define mode (this->hidden->mode) | 129 #define mode (this->hidden->mode) |
129 #define save_mode (this->hidden->save_mode) | 130 #define save_mode (this->hidden->save_mode) |
131 #define allow_screensaver (this->hidden->allow_screensaver) | |
130 #define mode_list (this->hidden->mode_list) | 132 #define mode_list (this->hidden->mode_list) |
131 #define palette (this->hidden->palette) | 133 #define palette (this->hidden->palette) |
132 #define gl_context (this->hidden->gl_context) | 134 #define gl_context (this->hidden->gl_context) |
133 #define device_width (this->hidden->width) | 135 #define device_width (this->hidden->width) |
134 #define device_height (this->hidden->height) | 136 #define device_height (this->hidden->height) |