changeset 726:5429a06aa816

SDL12: Disable screensaver in windib driver.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 30 Sep 2003 07:16:20 +0000
parents 9ee05fe728df
children cb1208fcd946
files src/video/windib/SDL_dibevents.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 ) {