ecore_evas_wayland: fix bug ecore_evas cannot update the evas when rotation

usecase:
    show -> rotation -> hide -> show
    ecore_evas_wayland didn't check the rotation.
    when ee is landscapemode, it cannot update the right area of evas.
This commit is contained in:
Jiyoun Park 2017-07-26 15:28:02 +09:00
parent 77db870b61
commit 6d4ebf9bc6
1 changed files with 4 additions and 1 deletions

View File

@ -1909,7 +1909,10 @@ _ecore_evas_wl_common_show(Ecore_Evas *ee)
einfo->www_avail = !!wdata->win->www_surface;
if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo))
ERR("Failed to set Evas Engine Info for '%s'", ee->driver);
evas_damage_rectangle_add(ee->evas, 0, 0, ee->w + fw, ee->h + fh);
if (ECORE_EVAS_PORTRAIT(ee))
evas_damage_rectangle_add(ee->evas, 0, 0, ee->w + fw, ee->h + fh);
else
evas_damage_rectangle_add(ee->evas, 0, 0, ee->h + fh, ee->w + fw);
}
}