forked from enlightenment/efl
+ecore_x_randr_output_backlight_available() from Term <term@twistedpath.org>
also corresponding e17 usage SVN revision: 65837
This commit is contained in:
parent
9cc624c718
commit
952b5f6326
|
@ -364,3 +364,7 @@
|
||||||
2011-12-02 Mike Blumenkrantz
|
2011-12-02 Mike Blumenkrantz
|
||||||
|
|
||||||
* Use mempools for allocations
|
* Use mempools for allocations
|
||||||
|
|
||||||
|
2011-12-02 Term <term@twistedpath.org>
|
||||||
|
|
||||||
|
* added ecore_x_randr_output_backlight_available()
|
||||||
|
|
|
@ -3,6 +3,10 @@ Ecore 1.2.0
|
||||||
Changes since Ecore 1.1.0:
|
Changes since Ecore 1.1.0:
|
||||||
--------------------------
|
--------------------------
|
||||||
|
|
||||||
|
Additions:
|
||||||
|
* ecore_x:
|
||||||
|
- ecore_x_randr_output_backlight_available()
|
||||||
|
|
||||||
Improvements:
|
Improvements:
|
||||||
* ecore:
|
* ecore:
|
||||||
- most allocations moved to mempools
|
- most allocations moved to mempools
|
||||||
|
|
|
@ -3114,7 +3114,10 @@ EAPI Ecore_X_Randr_Edid_Display_Interface_Type
|
||||||
ecore_x_randr_edid_display_interface_type_get(unsigned char *edid,
|
ecore_x_randr_edid_display_interface_type_get(unsigned char *edid,
|
||||||
unsigned long edid_length);
|
unsigned long edid_length);
|
||||||
|
|
||||||
/* ecore_x_randr_13.c */
|
/* ecore_x_randr_12.c */
|
||||||
|
|
||||||
|
EAPI Eina_Bool
|
||||||
|
ecore_x_randr_output_backlight_available(void);
|
||||||
EAPI void
|
EAPI void
|
||||||
ecore_x_randr_screen_backlight_level_set(Ecore_X_Window root,
|
ecore_x_randr_screen_backlight_level_set(Ecore_X_Window root,
|
||||||
double level);
|
double level);
|
||||||
|
|
|
@ -1964,6 +1964,26 @@ ecore_x_randr_screen_backlight_level_set(Ecore_X_Window root,
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @brief check if a backlight is available
|
||||||
|
* @return whether a blacklight is available
|
||||||
|
*/
|
||||||
|
|
||||||
|
EAPI Eina_Bool
|
||||||
|
ecore_x_randr_output_backlight_available(void)
|
||||||
|
{
|
||||||
|
#ifdef ECORE_XRANDR
|
||||||
|
RANDR_CHECK_1_2_RET(-1);
|
||||||
|
Atom _backlight;
|
||||||
|
|
||||||
|
_backlight = XInternAtom(_ecore_x_disp, RANDR_PROPERTY_BACKLIGHT, True);
|
||||||
|
|
||||||
|
return (_backlight == None) ? EINA_FALSE : EINA_TRUE;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
return EINA_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @brief get the backlight level of the given output
|
* @brief get the backlight level of the given output
|
||||||
* @param root window which's screen should be queried
|
* @param root window which's screen should be queried
|
||||||
|
|
Loading…
Reference in New Issue