evas_gl_context: reduce conditions for image orientation check

Reviewers: woohyun, eunue, kimcinoo, Hermet

Reviewed By: Hermet

Subscribers: kimcinoo, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11755
This commit is contained in:
Ali Alzyod 2020-04-24 20:55:12 +09:00 committed by Hermet Park
parent f5516e896d
commit 3ca52b7a1a
1 changed files with 6 additions and 6 deletions

View File

@ -2292,14 +2292,14 @@ evas_gl_common_context_image_push(Evas_Engine_GL_Context *gc,
sy = tex->im->h - sh - sy;
}
if (tex->im &&
else if (tex->im &&
(tex->im->orient == EVAS_IMAGE_ORIENT_180))
{
sx = tex->im->w - sw - sx;
sy = tex->im->h - sh - sy;
}
if (tex->im &&
else if (tex->im &&
(tex->im->orient == EVAS_IMAGE_ORIENT_270))
{
double tmp;
@ -2310,19 +2310,19 @@ evas_gl_common_context_image_push(Evas_Engine_GL_Context *gc,
sx = tex->im->w - sw - sx;
}
if (tex->im &&
else if (tex->im &&
(tex->im->orient == EVAS_IMAGE_FLIP_HORIZONTAL))
{
sx = tex->im->w - sw - sx;
}
if (tex->im &&
else if (tex->im &&
(tex->im->orient == EVAS_IMAGE_FLIP_VERTICAL))
{
sy = tex->im->h - sh - sy;
}
if (tex->im &&
else if (tex->im &&
(tex->im->orient == EVAS_IMAGE_FLIP_TRANSVERSE))
{
double tmp;
@ -2334,7 +2334,7 @@ evas_gl_common_context_image_push(Evas_Engine_GL_Context *gc,
sy = tex->im->h - sh - sy;
}
if (tex->im &&
else if (tex->im &&
(tex->im->orient == EVAS_IMAGE_FLIP_TRANSPOSE))
{
double tmp;