| Summary: | SDL has no way to control screensaver. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ryan C. Gordon <icculus> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | enhancement | ||
| Priority: | P1 | ||
| Version: | 1.2.11 | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | http://lists.libsdl.org/pipermail/sdl-libsdl.org/2007-March/060360.html | ||
| Attachments: |
Patch to disable screensaver on Mac OS X and X11.
Updated patch with cleanups. windib screensaver allowance patch |
||
|
Description
Ryan C. Gordon
2007-03-14 19:36:49 UTC
Created attachment 198 [details]
Patch to disable screensaver on Mac OS X and X11.
This patch uses SDL_ALLOWSCREENSAVER on Mac OS X and X11 targets, for the 1.2 branch.
--ryan.
Created attachment 204 [details]
Updated patch with cleanups.
Updated patch that only checks the environment variable on X11 at VideoInit time...so behaviour is correct even if environment table changes during execution.
--ryan.
Fixed in svn revision #3015. --ryan. Reopening bug and setting to P1; would like to get Windows in here for 1.2.12. --ryan. Created attachment 212 [details]
windib screensaver allowance patch
Here's a patch to the windib target to allow the screensaver in the same way as Mac OS X and X11...I don't think we can safely do this for the DX5 target, since it mentions losing the screen surface upon the screensaver starting...I'm okay with that, though.
This patch is untested, I don't have a Windows box handy.
--ryan.
Tossing bug to Sam...can you make sure that Attachment #212 [details] actually compiles on Windows?
Thanks,
--ryan.
Tested on windib, and it works, so I committed it. Fixed in svn revision #3105. This doesn't apply to 1.3, which should formalize this in an API and not an environment variable. --ryan. |