[Mplayer-cvslog] CVS: main/libvo x11_common.c,1.18,1.19

GEREOFFY arpi_esp at users.sourceforge.net
Wed May 9 22:15:40 CEST 2001


Update of /cvsroot/mplayer/main/libvo
In directory usw-pr-cvs1:/tmp/cvs-serv13927

Modified Files:
	x11_common.c 
Log Message:
DPMS re-enable patch by Loring Holden

Index: x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** x11_common.c	2001/05/08 12:17:03	1.18
--- x11_common.c	2001/05/09 20:15:37	1.19
***************
*** 220,226 ****
  	if (DPMSQueryExtension(mDisplay, &nothing, &nothing))
  	{
! 	    printf ("Enabling DPMS\n");
! 	    DPMSEnable(mDisplay);  // restoring power saving settings
! 	    DPMSQueryExtension(mDisplay, &nothing, &nothing);
  	}
      }
--- 220,236 ----
  	if (DPMSQueryExtension(mDisplay, &nothing, &nothing))
  	{
! 	    if (!DPMSEnable(mDisplay)) {  // restoring power saving settings
!                 printf("DPMS not available?\n");
!             } else {
!                 // DPMS does not seem to be enabled unless we call DPMSInfo
! 	        BOOL onoff;
!         	CARD16 state;
!         	DPMSInfo(mDisplay, &state, &onoff);
!                 if (onoff) {
! 	            printf ("Successfully enabled DPMS\n");
!                 } else {
! 	            printf ("Could not enable DPMS\n");
!                 }
!             }
  	}
      }
***************
*** 247,253 ****
  	if (onoff)
  	{
  	    printf ("Disabling DPMS\n");
  	    dpms_disabled=1;
! 		DPMSDisable(mDisplay);  // monitor powersave off
  	}
      }
--- 257,265 ----
  	if (onoff)
  	{
+            Status stat;
  	    printf ("Disabling DPMS\n");
  	    dpms_disabled=1;
! 	    stat = DPMSDisable(mDisplay);  // monitor powersave off
!             printf ("stat: %d\n", stat);
  	}
      }


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list