changeset 1792:409974dedf2e

More compile fixes for systems without the DPMS extension
author Sam Lantinga <slouken@libsdl.org>
date Tue, 09 May 2006 07:50:28 +0000
parents 5652192b9c8b
children 4d66375c2012
files src/video/dga/SDL_dgavideo.h src/video/x11/SDL_x11events.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/dga/SDL_dgavideo.h	Tue May 09 07:45:12 2006 +0000
+++ b/src/video/dga/SDL_dgavideo.h	Tue May 09 07:50:28 2006 +0000
@@ -25,6 +25,7 @@
 #define _SDL_dgavideo_h
 
 #include <X11/Xlib.h>
+#include <X11/Xproto.h>
 
 #include "SDL_mouse.h"
 #include "SDL_mutex.h"
@@ -93,9 +94,7 @@
 
 	/* Screensaver settings */
 	int screensaver_timeout;
-#if SDL_VIDEO_DRIVER_X11_DPMS
 	BOOL dpms_enabled;
-#endif
 };
 /* Old variable names */
 #define DGA_Display		(this->hidden->DGA_Display)
--- a/src/video/x11/SDL_x11events.c	Tue May 09 07:45:12 2006 +0000
+++ b/src/video/x11/SDL_x11events.c	Tue May 09 07:50:28 2006 +0000
@@ -1131,6 +1131,8 @@
 			DPMSInfo(display, &state, dpms);
 		}
 	}
+#else
+	*dpms = 0;
 #endif /* SDL_VIDEO_DRIVER_X11_DPMS */
 }