aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_drm2/ecore_drm2_device.c
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-05-11 09:42:42 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-05-27 11:57:53 -0400
commite934f546ad10e6aed599d7f4968e8c19871bfcd2 (patch)
treee7464caebf54e8cdd48be0847fe7386b79f431c7 /src/lib/ecore_drm2/ecore_drm2_device.c
parentecore-drm2: Add API function to return available crtcs (diff)
downloadefl-e934f546ad10e6aed599d7f4968e8c19871bfcd2.tar.gz
ecore-drm2: Add API function to get screen size range
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2_device.c')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_device.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c
index 550d6e3afb..ec180adade 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -268,3 +268,19 @@ ecore_drm2_device_crtcs_get(Ecore_Drm2_Device *device, int *num)
if (num) *num = device->num_crtcs;
return device->crtcs;
}
+
+EAPI void
+ecore_drm2_device_screen_size_range_get(Ecore_Drm2_Device *device, int *minw, int *minh, int *maxw, int *maxh)
+{
+ if (minw) *minw = 0;
+ if (minh) *minh = 0;
+ if (maxw) *maxw = 0;
+ if (maxh) *maxh = 0;
+
+ EINA_SAFETY_ON_NULL_RETURN(device);
+
+ if (minw) *minw = device->min.width;
+ if (minh) *minh = device->min.height;
+ if (maxw) *maxw = device->max.width;
+ if (maxh) *maxh = device->max.height;
+}