wrap 1.18 drm rotation functions around #ifdefs
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
parent
04ea946f3d
commit
b88e8b7a4d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue