summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ecore_drm/Ecore_Drm.h14
-rw-r--r--src/lib/ecore_drm/ecore_drm_device.c11
2 files changed, 25 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/Ecore_Drm.h b/src/lib/ecore_drm/Ecore_Drm.h
index feb48f8414..157d0b8f18 100644
--- a/src/lib/ecore_drm/Ecore_Drm.h
+++ b/src/lib/ecore_drm/Ecore_Drm.h
@@ -761,6 +761,20 @@ EAPI void ecore_drm_device_pointer_xy_get(Ecore_Drm_Device *dev, int *x, int *y)
761 */ 761 */
762EAPI const Eina_List *ecore_drm_devices_get(void); 762EAPI const Eina_List *ecore_drm_devices_get(void);
763 763
764/**
765 * Get the minimum and maximum screen size range
766 *
767 * @param dev The Ecore_Drm_Device to get screen size range from
768 * @param *minw The parameter in which smallest width is stored
769 * @param *minh The parameter in which smallest height is stored
770 * @param *maxw The parameter in which largest width is stored
771 * @param *maxh The parameter in which largest height is stored
772 *
773 * @ingroup Ecore_Drm_Device_Group
774 * @since 1.15
775 */
776EAPI void ecore_drm_screen_size_range_get(Ecore_Drm_Device *dev, int *minw, int *minh, int *maxw, int *maxh);
777
764#ifdef __cplusplus 778#ifdef __cplusplus
765} 779}
766#endif 780#endif
diff --git a/src/lib/ecore_drm/ecore_drm_device.c b/src/lib/ecore_drm/ecore_drm_device.c
index 2646483436..bc28205c99 100644
--- a/src/lib/ecore_drm/ecore_drm_device.c
+++ b/src/lib/ecore_drm/ecore_drm_device.c
@@ -530,3 +530,14 @@ ecore_drm_device_output_find(Ecore_Drm_Device *dev, int x, int y)
530 530
531 return NULL; 531 return NULL;
532} 532}
533
534EAPI void
535ecore_drm_screen_size_range_get(Ecore_Drm_Device *dev, int *minw, int *minh, int *maxw, int *maxh)
536{
537 EINA_SAFETY_ON_NULL_RETURN(dev);
538
539 if (minw) *minw = dev->min_width;
540 if (minh) *minh = dev->min_height;
541 if (maxw) *maxw = dev->max_width;
542 if (maxh) *maxh = dev->max_height;
543}