use the new SDL 1.2.12 env variable to allow the OS to launch the screensaver

when sheepshaver is running - must be linking to sdl 1.2.12 or later for it
to take effect
This commit is contained in:
asvitkine 2007-08-27 21:45:13 +00:00
parent 5b161928ed
commit dc524bb30a

View File

@ -371,6 +371,11 @@ int main(int argc, char **argv)
time_t now, expire;
bool memory_mapped_from_zero;
#ifdef USE_SDL_VIDEO
// don't let SDL block the screensaver
setenv("SDL_VIDEO_ALLOW_SCREENSAVER", "1", 1);
#endif
// Initialize variables
RAMBase = 0;
tzset();