Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_x


Modified Files:
        ecore_x_dpms.c 


Log Message:
With Seb's recent #ifdef's the if (!dpms_available) checks are not needed now.

===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_x/ecore_x_dpms.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ecore_x_dpms.c      13 Mar 2007 16:05:57 -0000      1.5
+++ ecore_x_dpms.c      13 Mar 2007 16:49:48 -0000      1.6
@@ -50,7 +50,6 @@
 ecore_x_dpms_capable_get(void)
 {
 #ifdef ECORE_XDPMS
-   if (!_dpms_available) return 0;
    return DPMSCapable(_ecore_x_disp);
 #else
    return 0;
@@ -69,7 +68,6 @@
    unsigned char state;
    unsigned short power_lvl;
 
-   if (!_dpms_available) return 0;
    DPMSInfo(_ecore_x_disp, &power_lvl, &state);
    return state;
 #else
@@ -86,7 +84,6 @@
 ecore_x_dpms_enabled_set(int enabled)
 {
 #ifdef ECORE_XDPMS
-   if (!_dpms_available) return;
    if (enabled)
      DPMSEnable(_ecore_x_disp);
    else
@@ -105,7 +102,6 @@
 ecore_x_dpms_timeouts_get(unsigned int *standby, unsigned int *suspend, 
unsigned int *off)
 {
 #ifdef ECORE_XDPMS
-   if (!_dpms_available) return;
    DPMSGetTimeouts(_ecore_x_disp, (unsigned short *)standby, 
                   (unsigned short *)suspend, (unsigned short *)off);
 #endif
@@ -122,7 +118,6 @@
 ecore_x_dpms_timeouts_set(unsigned int standby, unsigned int suspend, unsigned 
int off)
 {
 #ifdef ECORE_XDPMS
-   if (!_dpms_available) return 0;
    return DPMSSetTimeouts(_ecore_x_disp, standby, suspend, off);
 #else
    return 0;
@@ -140,7 +135,6 @@
 #ifdef ECORE_XDPMS
    unsigned short standby, suspend, off;
 
-   if (!_dpms_available) return 0;
    DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
    return standby;
 #else
@@ -160,7 +154,6 @@
 #ifdef ECORE_XDPMS
    unsigned short standby, suspend, off;
 
-   if (!_dpms_available) return 0;
    DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
    return suspend;
 #else
@@ -180,7 +173,6 @@
 #ifdef ECORE_XDPMS
    unsigned short standby, suspend, off;
 
-   if (!_dpms_available) return 0;
    DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
    return off;
 #else
@@ -199,7 +191,6 @@
 #ifdef ECORE_XDPMS
    unsigned short standby, suspend, off;
 
-   if (!_dpms_available) return;
    DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
    DPMSSetTimeouts(_ecore_x_disp, new_timeout, suspend, off);
 #endif
@@ -216,7 +207,6 @@
 #ifdef ECORE_XDPMS
    unsigned short standby, suspend, off;
 
-   if (!_dpms_available) return;
    DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
    DPMSSetTimeouts(_ecore_x_disp, standby, new_timeout, off);
 #endif
@@ -233,7 +223,6 @@
 #ifdef ECORE_XDPMS
    unsigned short standby, suspend, off;
 
-   if (!_dpms_available) return;
    DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
    DPMSSetTimeouts(_ecore_x_disp, standby, suspend, new_timeout);
 #endif



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to