summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorkabeer khan <kabeer.khan@samsung.com>2015-01-07 09:51:12 -0500
committerChris Michael <cp.michael@samsung.com>2015-01-07 09:51:19 -0500
commit200a9f342130ec2d82f68f68849aeb59da08e9e2 (patch)
tree15bc50d80b0bd04ce1e48ce38a7771aaf523268f /src/modules
parentbecd02aaa662e7ba9571e1d497bd5d7bd72fe15a (diff)
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.khan@samsung.com> Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1837
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c13
1 files 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 3b7ccaca1f..e41fe55153 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,
224 evas_data_attach_set(ee->evas, ee); 224 evas_data_attach_set(ee->evas, ee);
225 evas_output_method_set(ee->evas, method); 225 evas_output_method_set(ee->evas, method);
226 226
227 /* FIXME: Support initial rotation ?? */ 227 if(ee->rotation == 90 || ee->rotation == 270)
228 evas_output_size_set(ee->evas, w, h); 228 {
229 evas_output_viewport_set(ee->evas, 0, 0, w, h); 229 evas_output_size_set(ee->evas, h, w);
230 evas_output_viewport_set(ee->evas, 0, 0, h, w);
231 }
232 else
233 {
234 evas_output_size_set(ee->evas, w, h);
235 evas_output_viewport_set(ee->evas, 0, 0, w, h);
236 }
230 237
231 if (ee->can_async_render) 238 if (ee->can_async_render)
232 evas_event_callback_add(ee->evas, EVAS_CALLBACK_RENDER_POST, 239 evas_event_callback_add(ee->evas, EVAS_CALLBACK_RENDER_POST,