[Mplayer-cvslog] CVS: main/Gui/wm ws.c,1.30,1.31

Zoltan Ponekker pontscho at mplayer.dev.hu
Thu Feb 7 13:27:22 CET 2002


Update of /cvsroot/mplayer/main/Gui/wm
In directory mplayer:/var/tmp.root/cvs-serv1986/Gui/wm

Modified Files:
	ws.c 
Log Message:
fix dpsm compile bug in gui

Index: ws.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/wm/ws.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- ws.c	1 Feb 2002 16:34:22 -0000	1.30
+++ ws.c	7 Feb 2002 12:27:19 -0000	1.31
@@ -1162,6 +1162,7 @@
 void wsScreenSaverOn( Display *mDisplay )
 {
  int nothing;
+#ifdef HAVE_XDPMS
  if ( dpms_disabled )
   {
    if ( DPMSQueryExtension( mDisplay,&nothing,&nothing ) )
@@ -1178,7 +1179,7 @@
        }
     }
   }
-
+#endif
  if ( timeout_save )
   {
    int dummy, interval, prefer_blank, allow_exp;
@@ -1191,7 +1192,7 @@
 void wsScreenSaverOff( Display * mDisplay )
 {
  int interval,prefer_blank,allow_exp,nothing;
-
+#ifdef HAVE_XDPMS
  if ( DPMSQueryExtension( mDisplay,&nothing,&nothing ) )
   {
    BOOL onoff;
@@ -1206,6 +1207,7 @@
       fprintf( stderr,"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 ); // turning off screensaver
 }




More information about the MPlayer-cvslog mailing list