Skip to content
Permalink
Browse files

More compile fixes for systems without the DPMS extension

  • Loading branch information
slouken committed May 9, 2006
1 parent 2e68f27 commit 796693d708ddb4e12d4b6fefe3088a54a2b4ea97
Showing with 3 additions and 2 deletions.
  1. +1 −2 src/video/dga/SDL_dgavideo.h
  2. +2 −0 src/video/x11/SDL_x11events.c
@@ -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 @@ struct SDL_PrivateVideoData {

/* 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)
@@ -1131,6 +1131,8 @@ void X11_SaveScreenSaver(Display *display, int *saved_timeout, BOOL *dpms)
DPMSInfo(display, &state, dpms);
}
}
#else
*dpms = 0;
#endif /* SDL_VIDEO_DRIVER_X11_DPMS */
}

0 comments on commit 796693d

Please sign in to comment.