More compile fixes for systems without the DPMS extension
authorSam Lantinga <slouken@libsdl.org>
Tue, 09 May 2006 07:50:28 +0000
changeset 1792409974dedf2e
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
     1.1 --- a/src/video/dga/SDL_dgavideo.h	Tue May 09 07:45:12 2006 +0000
     1.2 +++ b/src/video/dga/SDL_dgavideo.h	Tue May 09 07:50:28 2006 +0000
     1.3 @@ -25,6 +25,7 @@
     1.4  #define _SDL_dgavideo_h
     1.5  
     1.6  #include <X11/Xlib.h>
     1.7 +#include <X11/Xproto.h>
     1.8  
     1.9  #include "SDL_mouse.h"
    1.10  #include "SDL_mutex.h"
    1.11 @@ -93,9 +94,7 @@
    1.12  
    1.13  	/* Screensaver settings */
    1.14  	int screensaver_timeout;
    1.15 -#if SDL_VIDEO_DRIVER_X11_DPMS
    1.16  	BOOL dpms_enabled;
    1.17 -#endif
    1.18  };
    1.19  /* Old variable names */
    1.20  #define DGA_Display		(this->hidden->DGA_Display)
     2.1 --- a/src/video/x11/SDL_x11events.c	Tue May 09 07:45:12 2006 +0000
     2.2 +++ b/src/video/x11/SDL_x11events.c	Tue May 09 07:50:28 2006 +0000
     2.3 @@ -1131,6 +1131,8 @@
     2.4  			DPMSInfo(display, &state, dpms);
     2.5  		}
     2.6  	}
     2.7 +#else
     2.8 +	*dpms = 0;
     2.9  #endif /* SDL_VIDEO_DRIVER_X11_DPMS */
    2.10  }
    2.11