SDL12: Disable screensaver in windib driver.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 30 Sep 2003 07:16:20 +0000
changeset 726 5429a06aa816
parent 725 9ee05fe728df
child 727 cb1208fcd946
SDL12: Disable screensaver in windib driver.
src/video/windib/SDL_dibevents.c
--- a/src/video/windib/SDL_dibevents.c	Sun Sep 28 18:31:07 2003 +0000
+++ b/src/video/windib/SDL_dibevents.c	Tue Sep 30 07:16:20 2003 +0000
@@ -160,6 +160,15 @@
 		}
 		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 ) {