Mercurial > mplayer.hg
changeset 1345:be674b95b485
x11_common does not compile, when the XDPMS extension is not available on the
target system.
author | jkeil |
---|---|
date | Thu, 19 Jul 2001 18:47:22 +0000 |
parents | bb1f389a002c |
children | d6e6132bff35 |
files | libvo/x11_common.c |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/x11_common.c Thu Jul 19 18:46:29 2001 +0000 +++ b/libvo/x11_common.c Thu Jul 19 18:47:22 2001 +0000 @@ -17,7 +17,9 @@ #include <X11/Xutil.h> #include <X11/Xatom.h> +#ifdef HAVE_XDPMS #include <X11/extensions/dpms.h> +#endif static int dpms_disabled=0; static int timeout_save=0; @@ -278,6 +280,7 @@ void saver_on(Display *mDisplay) { +#ifdef HAVE_XDPMS int nothing; if (dpms_disabled) { @@ -298,7 +301,8 @@ } } } - +#endif + if (timeout_save) { int dummy, interval, prefer_blank, allow_exp; @@ -311,7 +315,9 @@ void saver_off(Display *mDisplay) { - int interval, prefer_blank, allow_exp, nothing; + int interval, prefer_blank, allow_exp; +#ifdef HAVE_XDPMS + int nothing; if (DPMSQueryExtension(mDisplay, ¬hing, ¬hing)) { @@ -327,6 +333,7 @@ printf ("stat: %d\n", stat); } } +#endif XGetScreenSaver(mDisplay, &timeout_save, &interval, &prefer_blank, &allow_exp); if (timeout_save) XSetScreenSaver(mDisplay, 0, interval, prefer_blank, allow_exp);