ecore-drm2: add ecore_drm2_output_subpixel_get()

@feature
This commit is contained in:
Mike Blumenkrantz 2017-06-16 15:03:09 -04:00
parent ad0aae8f8d
commit a3d0af0069
2 changed files with 16 additions and 0 deletions

View File

@ -817,6 +817,15 @@ EAPI void ecore_drm2_output_user_data_set(Ecore_Drm2_Output *o, void *data);
*/
EAPI void ecore_drm2_output_release_handler_set(Ecore_Drm2_Output *output, Ecore_Drm2_Release_Handler handler, void *data);
/**
* Get the subpixel state of the output
* @param output the output
* @return The state value
* @ingroup Ecore_Drm2_Output_Group
* @since 1.20
*/
EAPI unsigned int ecore_drm2_output_subpixel_get(const Ecore_Drm2_Output *output);
/**
* @defgroup Ecore_Drm2_Fb_Group Drm framebuffer functions
*

View File

@ -1584,3 +1584,10 @@ err:
return ret;
}
EAPI unsigned int
ecore_drm2_output_subpixel_get(const Ecore_Drm2_Output *output)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(output, 0);
return output->subpixel;
}