e_output: check rotation value to execute e_comp's evas resize in _e_output_primary_u... 18/249818/1 accepted/tizen/6.0/unified/hotfix/20201218.015431 submit/tizen_6.0_hotfix/20201217.044619
authorJunkyeong Kim <jk0430.kim@samsung.com>
Tue, 15 Dec 2020 07:40:53 +0000 (16:40 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Thu, 17 Dec 2020 03:21:55 +0000 (12:21 +0900)
Change-Id: I8fb736f6fab59c6b0ae746f283e125ccd88cc7a2
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/bin/e_output.c

index 1c0b23a781ed971ce5c347e243d14c7c60ca0a53..3b9e4c4ba33a77763caa8325f11b1be21858b03d 100644 (file)
@@ -814,15 +814,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);