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;
}