summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,