SDL12: Disable screensaver in windib driver.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 30 Sep 2003 07:16:20 +0000
changeset 7265429a06aa816
parent 725 9ee05fe728df
child 727 cb1208fcd946
SDL12: Disable screensaver in windib driver.
src/video/windib/SDL_dibevents.c
     1.1 --- a/src/video/windib/SDL_dibevents.c	Sun Sep 28 18:31:07 2003 +0000
     1.2 +++ b/src/video/windib/SDL_dibevents.c	Tue Sep 30 07:16:20 2003 +0000
     1.3 @@ -160,6 +160,15 @@
     1.4  		}
     1.5  		return(0);
     1.6  
     1.7 +#if defined(SC_SCREENSAVE) && defined(SC_MONITORPOWER)
     1.8 +		case WM_SYSCOMMAND: {
     1.9 +			if ((wParam&0xFFF0)==SC_SCREENSAVE ||
    1.10 +				(wParam&0xFFF0)==SC_MONITORPOWER)
    1.11 +					return(0);
    1.12 +		}
    1.13 +		/* Fall through to default processing */
    1.14 +#endif /* SC_SCREENSAVE && SC_MONITORPOWER */
    1.15 +
    1.16  		default: {
    1.17  			/* Only post the event if we're watching for it */
    1.18  			if ( SDL_ProcessEvents[SDL_SYSWMEVENT] == SDL_ENABLE ) {