More compile fixes for systems without the DPMS extension
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401751
This commit is contained in:
parent
1782676d24
commit
5843b19d25
2 changed files with 3 additions and 2 deletions
|
@ -25,6 +25,7 @@
|
||||||
#define _SDL_dgavideo_h
|
#define _SDL_dgavideo_h
|
||||||
|
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
|
#include <X11/Xproto.h>
|
||||||
|
|
||||||
#include "SDL_mouse.h"
|
#include "SDL_mouse.h"
|
||||||
#include "SDL_mutex.h"
|
#include "SDL_mutex.h"
|
||||||
|
@ -93,9 +94,7 @@ struct SDL_PrivateVideoData {
|
||||||
|
|
||||||
/* Screensaver settings */
|
/* Screensaver settings */
|
||||||
int screensaver_timeout;
|
int screensaver_timeout;
|
||||||
#if SDL_VIDEO_DRIVER_X11_DPMS
|
|
||||||
BOOL dpms_enabled;
|
BOOL dpms_enabled;
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
/* Old variable names */
|
/* Old variable names */
|
||||||
#define DGA_Display (this->hidden->DGA_Display)
|
#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);
|
DPMSInfo(display, &state, dpms);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
*dpms = 0;
|
||||||
#endif /* SDL_VIDEO_DRIVER_X11_DPMS */
|
#endif /* SDL_VIDEO_DRIVER_X11_DPMS */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue