Skip to content

Commit

Permalink
SDL12: Disable screensaver in windib driver.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 30, 2003
1 parent 6150edf commit dd227c7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/video/windib/SDL_dibevents.c
Expand Up @@ -160,6 +160,15 @@ LONG
}
return(0);

#if defined(SC_SCREENSAVE) && defined(SC_MONITORPOWER)
case WM_SYSCOMMAND: {
if ((wParam&0xFFF0)==SC_SCREENSAVE ||
(wParam&0xFFF0)==SC_MONITORPOWER)
return(0);
}
/* Fall through to default processing */
#endif /* SC_SCREENSAVE && SC_MONITORPOWER */

default: {
/* Only post the event if we're watching for it */
if ( SDL_ProcessEvents[SDL_SYSWMEVENT] == SDL_ENABLE ) {
Expand Down

0 comments on commit dd227c7

Please sign in to comment.