don't define variables that we are not going to use
If our efl version is not >= 1.18, then the rotations and orient variables here end up being unused. This patch just moves those variables (and their usage) inside the 1.18 version check Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
parent
1507f815a5
commit
993f387433
|
@ -452,8 +452,6 @@ _drm_randr_create(void)
|
||||||
|
|
||||||
if (ok)
|
if (ok)
|
||||||
{
|
{
|
||||||
unsigned int rotations;
|
|
||||||
|
|
||||||
if (!possible)
|
if (!possible)
|
||||||
{
|
{
|
||||||
unsigned int refresh;
|
unsigned int refresh;
|
||||||
|
@ -477,6 +475,8 @@ _drm_randr_create(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (EFL_VERSION_MAJOR > 1) || (EFL_VERSION_MINOR >= 18)
|
#if (EFL_VERSION_MAJOR > 1) || (EFL_VERSION_MINOR >= 18)
|
||||||
|
unsigned int rotations;
|
||||||
|
|
||||||
rotations =
|
rotations =
|
||||||
ecore_drm_output_supported_rotations_get(output,
|
ecore_drm_output_supported_rotations_get(output,
|
||||||
ECORE_DRM_PLANE_TYPE_PRIMARY);
|
ECORE_DRM_PLANE_TYPE_PRIMARY);
|
||||||
|
@ -554,7 +554,6 @@ _drm_randr_apply(void)
|
||||||
|
|
||||||
EINA_LIST_FOREACH(e_randr2->screens, ll, s)
|
EINA_LIST_FOREACH(e_randr2->screens, ll, s)
|
||||||
{
|
{
|
||||||
int orient;
|
|
||||||
Ecore_Drm_Output_Mode *mode = NULL;
|
Ecore_Drm_Output_Mode *mode = NULL;
|
||||||
|
|
||||||
printf("DRM RRR: find output for '%s'\n", s->info.name);
|
printf("DRM RRR: find output for '%s'\n", s->info.name);
|
||||||
|
@ -593,6 +592,11 @@ _drm_randr_apply(void)
|
||||||
else
|
else
|
||||||
printf("\tDRM RRR: No Valid Drm Mode Found\n");
|
printf("\tDRM RRR: No Valid Drm Mode Found\n");
|
||||||
|
|
||||||
|
ecore_drm_output_mode_set(out, mode,
|
||||||
|
s->config.geom.x, s->config.geom.y);
|
||||||
|
#if (EFL_VERSION_MAJOR > 1) || (EFL_VERSION_MINOR >= 18)
|
||||||
|
int orient;
|
||||||
|
|
||||||
if (s->config.rotation == 0)
|
if (s->config.rotation == 0)
|
||||||
orient = (1 << 0);
|
orient = (1 << 0);
|
||||||
else if (s->config.rotation == 90)
|
else if (s->config.rotation == 90)
|
||||||
|
@ -602,9 +606,6 @@ _drm_randr_apply(void)
|
||||||
else if (s->config.rotation == 270)
|
else if (s->config.rotation == 270)
|
||||||
orient = (1 << 3);
|
orient = (1 << 3);
|
||||||
|
|
||||||
ecore_drm_output_mode_set(out, mode,
|
|
||||||
s->config.geom.x, s->config.geom.y);
|
|
||||||
#if (EFL_VERSION_MAJOR > 1) || (EFL_VERSION_MINOR >= 18)
|
|
||||||
ecore_drm_output_rotation_set(out,
|
ecore_drm_output_rotation_set(out,
|
||||||
ECORE_DRM_PLANE_TYPE_PRIMARY,
|
ECORE_DRM_PLANE_TYPE_PRIMARY,
|
||||||
orient);
|
orient);
|
||||||
|
|
Loading…
Reference in New Issue