summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUmesh Tanwar <umesh.tanwar@samsung.com>2018-07-18 08:10:21 -0400
committerChris Michael <cp.michael@samsung.com>2018-07-18 08:10:22 -0400
commit67684dec73abe4c1fe00b133cf790d5bec9e8154 (patch)
treec0aa03dcccb85093d4d2ee55ee6c85dd8a8bb2b8
parent93ec34eda999dbe1a98c8c375319ba7871a0cca0 (diff)
ecore_evas: when window resized in ecore_evas, check evas rotate state.
Summary: when ecore_evas is resized, get evas' size, but angle not checked, so put a check. @fix Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com> Reviewers: Hermet, devilhorns Reviewed By: devilhorns Subscribers: cedric, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6627
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
index 15c275c8df..3ca5794084 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
@@ -460,7 +460,10 @@ _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h)
460 } 460 }
461 } 461 }
462 462
463 evas_output_size_get(ee->evas, &ow, &oh); 463 if (ECORE_EVAS_PORTRAIT(ee))
464 evas_output_size_get(ee->evas, &ow, &oh);
465 else
466 evas_output_size_get(ee->evas, &oh, &ow);
464 467
465 if (ECORE_EVAS_PORTRAIT(ee) && ((ow != w) || (oh != h))) 468 if (ECORE_EVAS_PORTRAIT(ee) && ((ow != w) || (oh != h)))
466 diff = 1; 469 diff = 1;