forked from enlightenment/efl
ecore-drm2: Add API function to return physical size of a given output
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
parent
b634f9485a
commit
ad58670c56
|
@ -437,6 +437,20 @@ EAPI Eina_Bool ecore_drm2_output_enabled_get(Ecore_Drm2_Output *output);
|
|||
*/
|
||||
EAPI void ecore_drm2_output_enabled_set(Ecore_Drm2_Output *output, Eina_Bool enabled);
|
||||
|
||||
/**
|
||||
* Get the physical size of a given output
|
||||
*
|
||||
* This function will give the physical size (in mm) of an output
|
||||
*
|
||||
* @param output
|
||||
* @param *w
|
||||
* @param *h
|
||||
*
|
||||
* @ingroup Ecore_Drm2_Output_Group
|
||||
* @since 1.18
|
||||
*/
|
||||
EAPI void ecore_drm2_output_physical_size_get(Ecore_Drm2_Output *output, int *w, int *h);
|
||||
|
||||
/**
|
||||
* @defgroup Ecore_Drm2_Fb_Group Drm framebuffer functions
|
||||
*
|
||||
|
|
|
@ -954,3 +954,15 @@ ecore_drm2_output_enabled_set(Ecore_Drm2_Output *output, Eina_Bool enabled)
|
|||
|
||||
_output_event_send(output);
|
||||
}
|
||||
|
||||
EAPI void
|
||||
ecore_drm2_output_physical_size_get(Ecore_Drm2_Output *output, int *w, int *h)
|
||||
{
|
||||
if (w) *w = 0;
|
||||
if (h) *h = 0;
|
||||
|
||||
EINA_SAFETY_ON_NULL_RETURN(output);
|
||||
|
||||
if (w) *w = output->pw;
|
||||
if (h) *h = output->ph;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue