e_output: check rotation value to execute e_comp's evas resize in _e_output_primary_u... 89/249589/1
authorJunkyeong Kim <jk0430.kim@samsung.com>
Tue, 15 Dec 2020 07:40:53 +0000 (16:40 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Tue, 15 Dec 2020 07:40:56 +0000 (16:40 +0900)
Change-Id: I8fb736f6fab59c6b0ae746f283e125ccd88cc7a2
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/bin/e_output.c

index b22033b..da3a076 100644 (file)
@@ -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);