forked from enlightenment/efl
ecore-xcb: Add implementation for missing API function
This patch adds an xcb implementation for missing API function ecore_x_randr_edid_dpms_off_available_get @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
parent
a19756be38
commit
bb8011a637
|
@ -1,6 +1,5 @@
|
||||||
/* TODO: List of missing functions
|
/* TODO: List of missing functions
|
||||||
*
|
*
|
||||||
* ecore_x_randr_edid_dpms_off_available_get
|
|
||||||
* ecore_x_randr_edid_display_aspect_ratio_preferred_get
|
* ecore_x_randr_edid_display_aspect_ratio_preferred_get
|
||||||
* ecore_x_randr_edid_display_aspect_ratios_get
|
* ecore_x_randr_edid_display_aspect_ratios_get
|
||||||
* ecore_x_randr_edid_display_colorscheme_get
|
* ecore_x_randr_edid_display_colorscheme_get
|
||||||
|
@ -3195,6 +3194,23 @@ ecore_x_randr_edid_dpms_suspend_available_get(unsigned char *edid, unsigned long
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI Eina_Bool
|
||||||
|
ecore_x_randr_edid_dpms_off_available_get(unsigned char *edid, unsigned long edid_length)
|
||||||
|
{
|
||||||
|
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||||
|
CHECK_XCB_CONN;
|
||||||
|
|
||||||
|
#ifdef ECORE_XCB_RANDR
|
||||||
|
int version = 0;
|
||||||
|
|
||||||
|
version = ecore_x_randr_edid_version_get(edid, edid_length);
|
||||||
|
if (version < ECORE_X_RANDR_EDID_VERSION_13) return EINA_FALSE;
|
||||||
|
|
||||||
|
if (edid[0x18] & 0xE0) return !!(edid[0x18] & 0x20);
|
||||||
|
#endif
|
||||||
|
return EINA_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/* local functions */
|
/* local functions */
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_ecore_xcb_randr_output_validate(Ecore_X_Window root,
|
_ecore_xcb_randr_output_validate(Ecore_X_Window root,
|
||||||
|
|
Loading…
Reference in New Issue