Skip to content

Commit

Permalink
More compile fixes for systems without the DPMS extension
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 9, 2006
1 parent 2e68f27 commit 796693d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/video/dga/SDL_dgavideo.h
Expand Up @@ -25,6 +25,7 @@
#define _SDL_dgavideo_h

#include <X11/Xlib.h>
#include <X11/Xproto.h>

#include "SDL_mouse.h"
#include "SDL_mutex.h"
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/video/x11/SDL_x11events.c
Expand Up @@ -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 */
}

Expand Down

0 comments on commit 796693d

Please sign in to comment.