aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2010-07-28 05:23:42 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2010-07-28 05:23:42 +0000
commite248c8b6fc5e9485181e3f78b3409aaf47a923e8 (patch)
tree6dd87711a4335cb79140a93c208f2552f8a35bce /legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c
parentlots of doxy fixes and stop casting to char* (diff)
downloadefl-e248c8b6fc5e9485181e3f78b3409aaf47a923e8.tar.gz
uncrustify so T_UNIX will stop nagging me! :)
SVN revision: 50583
Diffstat (limited to 'legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c')
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c
index 3b15dbcaca..666084279c 100644
--- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c
+++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c
@@ -20,9 +20,10 @@ _ecore_x_dpms_init(void)
_dpms_minor = 0;
if (DPMSGetVersion(_ecore_x_disp, &_dpms_major, &_dpms_minor))
- _dpms_available = 1;
+ _dpms_available = 1;
else
- _dpms_available = 0;
+ _dpms_available = 0;
+
#else
_dpms_available = 0;
#endif
@@ -92,9 +93,10 @@ ecore_x_dpms_enabled_set(int enabled)
#ifdef ECORE_XDPMS
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (enabled)
- DPMSEnable(_ecore_x_disp);
+ DPMSEnable(_ecore_x_disp);
else
- DPMSDisable(_ecore_x_disp);
+ DPMSDisable(_ecore_x_disp);
+
#endif
}
@@ -106,12 +108,14 @@ ecore_x_dpms_enabled_set(int enabled)
* @ingroup Ecore_X_DPMS_Group
*/
EAPI void
-ecore_x_dpms_timeouts_get(unsigned int *standby, unsigned int *suspend, unsigned int *off)
+ecore_x_dpms_timeouts_get(unsigned int *standby,
+ unsigned int *suspend,
+ unsigned int *off)
{
#ifdef ECORE_XDPMS
LOGFN(__FILE__, __LINE__, __FUNCTION__);
- DPMSGetTimeouts(_ecore_x_disp, (unsigned short *)standby,
- (unsigned short *)suspend, (unsigned short *)off);
+ DPMSGetTimeouts(_ecore_x_disp, (unsigned short *)standby,
+ (unsigned short *)suspend, (unsigned short *)off);
#endif
}
@@ -123,7 +127,9 @@ ecore_x_dpms_timeouts_get(unsigned int *standby, unsigned int *suspend, unsigned
* @ingroup Ecore_X_DPMS_Group
*/
EAPI int
-ecore_x_dpms_timeouts_set(unsigned int standby, unsigned int suspend, unsigned int off)
+ecore_x_dpms_timeouts_set(unsigned int standby,
+ unsigned int suspend,
+ unsigned int off)
{
#ifdef ECORE_XDPMS
LOGFN(__FILE__, __LINE__, __FUNCTION__);