summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_dpms.c
diff options
context:
space:
mode:
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 3b15dbc..6660842 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)
20 _dpms_minor = 0; 20 _dpms_minor = 0;
21 21
22 if (DPMSGetVersion(_ecore_x_disp, &_dpms_major, &_dpms_minor)) 22 if (DPMSGetVersion(_ecore_x_disp, &_dpms_major, &_dpms_minor))
23 _dpms_available = 1; 23 _dpms_available = 1;
24 else 24 else
25 _dpms_available = 0; 25 _dpms_available = 0;
26
26#else 27#else
27 _dpms_available = 0; 28 _dpms_available = 0;
28#endif 29#endif
@@ -92,9 +93,10 @@ ecore_x_dpms_enabled_set(int enabled)
92#ifdef ECORE_XDPMS 93#ifdef ECORE_XDPMS
93 LOGFN(__FILE__, __LINE__, __FUNCTION__); 94 LOGFN(__FILE__, __LINE__, __FUNCTION__);
94 if (enabled) 95 if (enabled)
95 DPMSEnable(_ecore_x_disp); 96 DPMSEnable(_ecore_x_disp);
96 else 97 else
97 DPMSDisable(_ecore_x_disp); 98 DPMSDisable(_ecore_x_disp);
99
98#endif 100#endif
99} 101}
100 102
@@ -106,12 +108,14 @@ ecore_x_dpms_enabled_set(int enabled)
106 * @ingroup Ecore_X_DPMS_Group 108 * @ingroup Ecore_X_DPMS_Group
107 */ 109 */
108EAPI void 110EAPI void
109ecore_x_dpms_timeouts_get(unsigned int *standby, unsigned int *suspend, unsigned int *off) 111ecore_x_dpms_timeouts_get(unsigned int *standby,
112 unsigned int *suspend,
113 unsigned int *off)
110{ 114{
111#ifdef ECORE_XDPMS 115#ifdef ECORE_XDPMS
112 LOGFN(__FILE__, __LINE__, __FUNCTION__); 116 LOGFN(__FILE__, __LINE__, __FUNCTION__);
113 DPMSGetTimeouts(_ecore_x_disp, (unsigned short *)standby, 117 DPMSGetTimeouts(_ecore_x_disp, (unsigned short *)standby,
114 (unsigned short *)suspend, (unsigned short *)off); 118 (unsigned short *)suspend, (unsigned short *)off);
115#endif 119#endif
116} 120}
117 121
@@ -123,7 +127,9 @@ ecore_x_dpms_timeouts_get(unsigned int *standby, unsigned int *suspend, unsigned
123 * @ingroup Ecore_X_DPMS_Group 127 * @ingroup Ecore_X_DPMS_Group
124 */ 128 */
125EAPI int 129EAPI int
126ecore_x_dpms_timeouts_set(unsigned int standby, unsigned int suspend, unsigned int off) 130ecore_x_dpms_timeouts_set(unsigned int standby,
131 unsigned int suspend,
132 unsigned int off)
127{ 133{
128#ifdef ECORE_XDPMS 134#ifdef ECORE_XDPMS
129 LOGFN(__FILE__, __LINE__, __FUNCTION__); 135 LOGFN(__FILE__, __LINE__, __FUNCTION__);