summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2_outputs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2_outputs.c')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_outputs.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c
index 7c460c0c7f..f3f13081b0 100644
--- a/src/lib/ecore_drm2/ecore_drm2_outputs.c
+++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c
@@ -1664,3 +1664,22 @@ ecore_drm2_output_blanktime_get(Ecore_Drm2_Output *output, int sequence, long *s
1664 *usec = v.reply.tval_usec; 1664 *usec = v.reply.tval_usec;
1665 return EINA_TRUE; 1665 return EINA_TRUE;
1666} 1666}
1667
1668EAPI void
1669ecore_drm2_output_info_get(Ecore_Drm2_Output *output, int *x, int *y, int *w, int *h, unsigned int *refresh)
1670{
1671 if (x) *x = 0;
1672 if (y) *y = 0;
1673 if (w) *w = 0;
1674 if (h) *h = 0;
1675 if (refresh) *refresh = 0;
1676
1677 EINA_SAFETY_ON_NULL_RETURN(output);
1678 EINA_SAFETY_ON_TRUE_RETURN(!output->current_mode);
1679
1680 if (w) *w = output->current_mode->width;
1681 if (h) *h = output->current_mode->height;
1682 if (refresh) *refresh = output->current_mode->refresh;
1683 if (x) *x = output->x;
1684 if (y) *y = output->y;
1685}