Mercurial > sdl-ios-xcode
diff src/video/win32/SDL_win32events.c @ 3025:54fac87e1f34
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.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 12 Jan 2009 06:19:05 +0000 |
parents | 502adab079a4 |
children | 77c3e67f0740 |
line wrap: on
line diff
--- a/src/video/win32/SDL_win32events.c Sun Jan 11 23:56:19 2009 +0000 +++ b/src/video/win32/SDL_win32events.c Mon Jan 12 06:19:05 2009 +0000 @@ -578,8 +578,8 @@ /* 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); } }