e_output: set rotation of screen after ecore_evas is resized 85/272285/1 accepted/tizen/unified/20220315.132308 submit/tizen/20220315.042653
authorChangyeon Lee <cyeon.lee@samsung.com>
Fri, 11 Mar 2022 09:34:02 +0000 (18:34 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Mon, 14 Mar 2022 06:10:54 +0000 (15:10 +0900)
rotation of ecore_evas is reset after ecore_evas is resized
so we should set rotation of ecore_evas after it is resized

Change-Id: I8358eae3362587989f3eeac0e97c38c0c91d01e2

src/bin/e_comp_screen.c

index 8b3f86cb390b96e344b088056310a6a18970843e..8d25352849cec3ddc2a3b614f71e8ae818414a96 100644 (file)
@@ -409,7 +409,20 @@ _e_comp_screen_size_update(E_Comp_Screen *e_comp_screen)
    e_comp_screen->w = sum_w;
    e_comp_screen->h = max_h;
 
-   if (e_comp->ee) ecore_evas_resize(e_comp->ee, e_comp_screen->w, e_comp_screen->h);
+   if (e_comp->ee)
+     {
+        /* rotation should be reset because tbm_surface_queue or gbm_surface of
+         * ecore_evas is created without rotation
+         * and rotation of ecore_evas is reset after it is resized
+         */
+        if (e_comp_screen->rotation)
+          ecore_evas_rotation_with_resize_set(e_comp->ee, 0);
+
+        ecore_evas_resize(e_comp->ee, e_comp_screen->w, e_comp_screen->h);
+
+        if (e_comp_screen->rotation)
+          ecore_evas_rotation_with_resize_set(e_comp->ee, e_comp_screen->rotation);
+     }
 
    return EINA_TRUE;
 }