forked from enlightenment/efl
Ecore_X(cb): Fix formatting in newly added randr code.
SVN revision: 64961
This commit is contained in:
parent
6431be5ecb
commit
1f5a1508b7
|
@ -2450,8 +2450,7 @@ ecore_x_randr_output_backlight_level_set(Ecore_X_Window root,
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI int
|
EAPI int
|
||||||
ecore_x_randr_edid_version_get(unsigned char *edid,
|
ecore_x_randr_edid_version_get(unsigned char *edid, unsigned long edid_length)
|
||||||
unsigned long edid_length)
|
|
||||||
{
|
{
|
||||||
if ((edid_length > _ECORE_X_RANDR_EDID_OFFSET_VERSION_MINOR) &&
|
if ((edid_length > _ECORE_X_RANDR_EDID_OFFSET_VERSION_MINOR) &&
|
||||||
(ecore_x_randr_edid_has_valid_header(edid, edid_length)))
|
(ecore_x_randr_edid_has_valid_header(edid, edid_length)))
|
||||||
|
@ -2496,13 +2495,14 @@ ecore_x_randr_edid_display_name_get(unsigned char *edid, unsigned long edid_leng
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Eina_Bool
|
EAPI Eina_Bool
|
||||||
ecore_x_randr_edid_has_valid_header(unsigned char *edid,
|
ecore_x_randr_edid_has_valid_header(unsigned char *edid, unsigned long edid_length)
|
||||||
unsigned long edid_length)
|
|
||||||
{
|
{
|
||||||
const unsigned char header[] =
|
const unsigned char header[] =
|
||||||
{ 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00 };
|
{
|
||||||
if (!edid) return EINA_FALSE;
|
0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00
|
||||||
if (edid_length < 8) return EINA_FALSE;
|
};
|
||||||
|
|
||||||
|
if ((!edid) || (edid_length < 8)) return EINA_FALSE;
|
||||||
if (!memcmp(edid, header, 8)) return EINA_TRUE;
|
if (!memcmp(edid, header, 8)) return EINA_TRUE;
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue