From: Junkyeong Kim Date: Tue, 15 Dec 2020 07:40:53 +0000 (+0900) Subject: e_output: check rotation value to execute e_comp's evas resize in _e_output_primary_u... X-Git-Tag: submit/tizen/20201216.054340~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=23900996fa69ff2125ff44420914047b5ff5e231;p=platform%2Fupstream%2Fenlightenment.git 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 --- 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);