summaryrefslogtreecommitdiff
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
parentf3b767255154454fe43c5d40f3d9b3b7a97b96c0 (diff)
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)
268 if (num) *num = device->num_crtcs; 268 if (num) *num = device->num_crtcs;
269 return device->crtcs; 269 return device->crtcs;
270} 270}
271
272EAPI void
273ecore_drm2_device_screen_size_range_get(Ecore_Drm2_Device *device, int *minw, int *minh, int *maxw, int *maxh)
274{
275 if (minw) *minw = 0;
276 if (minh) *minh = 0;
277 if (maxw) *maxw = 0;
278 if (maxh) *maxh = 0;
279
280 EINA_SAFETY_ON_NULL_RETURN(device);
281
282 if (minw) *minw = device->min.width;
283 if (minh) *minh = device->min.height;
284 if (maxw) *maxw = device->max.width;
285 if (maxh) *maxh = device->max.height;
286}