devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=200a9f342130ec2d82f68f68849aeb59da08e9e2
commit 200a9f342130ec2d82f68f68849aeb59da08e9e2 Author: kabeer khan <kabeer.k...@samsung.com> Date: Wed Jan 7 09:51:12 2015 -0500 ecore_evas_drm: Added support for initial rotation in ecore_evas_drm Summary: Resolved FIXME added support for initial rotation in ecore_evas_drm initialisation @fix Signed-off-by: kabeer khan <kabeer.k...@samsung.com> Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1837 --- src/modules/ecore_evas/engines/drm/ecore_evas_drm.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c index 3b7ccac..e41fe55 100644 --- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c +++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c @@ -224,9 +224,16 @@ ecore_evas_drm_new_internal(const char *device, unsigned int parent EINA_UNUSED, evas_data_attach_set(ee->evas, ee); evas_output_method_set(ee->evas, method); - /* FIXME: Support initial rotation ?? */ - evas_output_size_set(ee->evas, w, h); - evas_output_viewport_set(ee->evas, 0, 0, w, h); + if(ee->rotation == 90 || ee->rotation == 270) + { + evas_output_size_set(ee->evas, h, w); + evas_output_viewport_set(ee->evas, 0, 0, h, w); + } + else + { + evas_output_size_set(ee->evas, w, h); + evas_output_viewport_set(ee->evas, 0, 0, w, h); + } if (ee->can_async_render) evas_event_callback_add(ee->evas, EVAS_CALLBACK_RENDER_POST, --