aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-11-28 11:46:38 -0500
committerChris Michael <cp.michael@samsung.com>2018-01-31 11:18:03 -0500
commit1480dd0854a1f029c897f693950d09d4c8e36e5c (patch)
treefec6185683005162dba0cb033d81c7cc36896404
parentecore-drm2: Rename newly added API (diff)
downloadefl-1480dd0854a1f029c897f693950d09d4c8e36e5c.tar.gz
ecore-evas-drm: Handle screen geometry for cloned outputs
If we have an output which is cloned, then it's dimensions should not be considered when calculating screen geometry. Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
index 47be7ea311..5863a30c69 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -429,10 +429,12 @@ _drm_screen_geometry_get(const Ecore_Evas *ee EINA_UNUSED, int *x, int *y, int *
{
int relative;
- relative = ecore_drm2_output_relative_get(output);
+ relative = ecore_drm2_output_relative_mode_get(output);
ecore_drm2_output_info_get(output, NULL, NULL, &ow, &oh, NULL);
switch (relative)
{
+ case ECORE_DRM2_RELATIVE_CLONE:
+ break;
case ECORE_DRM2_RELATIVE_TO_LEFT:
case ECORE_DRM2_RELATIVE_TO_RIGHT:
if (w) *w += MAX(*w, ow);