wrap 1.18 drm rotation functions around #ifdefs

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
Chris Michael 2016-02-04 11:17:48 -05:00
parent 04ea946f3d
commit b88e8b7a4d
1 changed files with 4 additions and 0 deletions

View File

@ -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);