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. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403487
This commit is contained in:
parent
4bb83c1f39
commit
4ca3bd3da1
16 changed files with 183 additions and 146 deletions
|
@ -578,8 +578,8 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
/* Don't start the screensaver or blank the monitor in fullscreen apps */
|
||||
if ((wParam & 0xFFF0) == SC_SCREENSAVE ||
|
||||
(wParam & 0xFFF0) == SC_MONITORPOWER) {
|
||||
if (SDL_GetWindowFlags(data->windowID) &
|
||||
SDL_WINDOW_FULLSCREEN) {
|
||||
SDL_VideoData *videodata = data->videodata;
|
||||
if (videodata->suspend_screensaver) {
|
||||
return (0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue