summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/ecore_drm_device.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-05-04 13:25:15 -0400
committerChris Michael <cp.michael@samsung.com>2015-05-07 14:39:45 -0400
commit29362040b2a01e731d0dd7e3f52300a1d5ad8836 (patch)
tree85fe19eb8bc40e008fa9b8abe6ea314af3de3018 /src/lib/ecore_drm/ecore_drm_device.c
parentb5a7a9b556e3966cccbdeece396ea48f0b4d84e9 (diff)
ecore-drm: Add API function to return screen size range
Summary: This adds new API function to return the min & max width & height of valid screen range for an Ecore_Drm_Device @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm/ecore_drm_device.c')
-rw-r--r--src/lib/ecore_drm/ecore_drm_device.c11
1 files changed, 11 insertions, 0 deletions
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}