More compile fixes for systems without the DPMS extension
authorSam Lantinga <slouken@libsdl.org>
Tue, 09 May 2006 07:50:28 +0000
changeset 1792 409974dedf2e
parent 1791 5652192b9c8b
child 1793 4d66375c2012
More compile fixes for systems without the DPMS extension
src/video/dga/SDL_dgavideo.h
src/video/x11/SDL_x11events.c
--- 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 */
 }