From 23900996fa69ff2125ff44420914047b5ff5e231 Mon Sep 17 00:00:00 2001 From: Junkyeong Kim Date: Tue, 15 Dec 2020 16:40:53 +0900 Subject: [PATCH] e_output: check rotation value to execute e_comp's evas resize in _e_output_primary_update Change-Id: I8fb736f6fab59c6b0ae746f283e125ccd88cc7a2 Signed-off-by: Junkyeong Kim --- src/bin/e_output.c | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/src/bin/e_output.c b/src/bin/e_output.c index b22033b1d1..da3a076d4f 100644 --- a/src/bin/e_output.c +++ b/src/bin/e_output.c @@ -815,15 +815,28 @@ _e_output_primary_update(E_Output *output) } e_output_size_get(output, &w, &h); - if (w == e_comp->w && h == e_comp->h) + if (output->e_comp_screen->rotation == 90 || output->e_comp_screen->rotation == 270) { - e_comp_canvas_norender_pop(); - return; + if (w == e_comp->h && h == e_comp->w) + { + e_comp_canvas_norender_pop(); + return; + } + ecore_evas_resize(e_comp->ee, mode->h, mode->w); + e_comp->w = mode->h; + e_comp->h = mode->w; + } + else + { + if (w == e_comp->w && h == e_comp->h) + { + e_comp_canvas_norender_pop(); + return; + } + ecore_evas_resize(e_comp->ee, mode->w, mode->h); + e_comp->w = mode->w; + e_comp->h = mode->h; } - - ecore_evas_resize(e_comp->ee, mode->w, mode->h); - e_comp->w = mode->w; - e_comp->h = mode->h; ecore_event_add(E_EVENT_SCREEN_CHANGE, NULL, NULL, NULL); -- 2.34.1