devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=b88e8b7a4dfcf573b3f5489cd66eb36b47d4eae1

commit b88e8b7a4dfcf573b3f5489cd66eb36b47d4eae1
Author: Chris Michael <cpmich...@osg.samsung.com>
Date:   Thu Feb 4 11:17:48 2016 -0500

    wrap 1.18 drm rotation functions around #ifdefs
    
    Signed-off-by: Chris Michael <cpmich...@osg.samsung.com>
---
 src/modules/wl_drm/e_mod_main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/modules/wl_drm/e_mod_main.c b/src/modules/wl_drm/e_mod_main.c
index 1e1348e..69f2e78 100644
--- a/src/modules/wl_drm/e_mod_main.c
+++ b/src/modules/wl_drm/e_mod_main.c
@@ -476,6 +476,7 @@ _drm_randr_create(void)
                               s->config.geom.w, s->config.geom.h);
                     }
 
+#ifdef (EFL_VERSION_MAJOR > 1) || (EFL_VERSION_MINOR >= 18)
                   rotations =
                     ecore_drm_output_supported_rotations_get(output,
                                                              
ECORE_DRM_PLANE_TYPE_PRIMARY);
@@ -488,6 +489,7 @@ _drm_randr_create(void)
                     s->info.can_rot_180 = EINA_TRUE;
                   if (rotations & ECORE_DRM_PLANE_ROTATION_270)
                     s->info.can_rot_270 = EINA_TRUE;
+#endif
 
                   if (cs)
                     {
@@ -602,9 +604,11 @@ _drm_randr_apply(void)
 
                   ecore_drm_output_mode_set(out, mode,
                                             s->config.geom.x, 
s->config.geom.y);
+#ifdef (EFL_VERSION_MAJOR > 1) || (EFL_VERSION_MINOR >= 18)
                   ecore_drm_output_rotation_set(out,
                                                 ECORE_DRM_PLANE_TYPE_PRIMARY,
                                                 orient);
+#endif
 
                   if (s->config.priority == top_priority)
                     ecore_drm_output_primary_set(out);

-- 


Reply via email to