Commit 5843b19d authored by Sam Lantinga's avatar Sam Lantinga

More compile fixes for systems without the DPMS extension

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401751
parent 1782676d
......@@ -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 */
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment