diff options
author | Ali <ali198724@gmail.com> | 2020-04-24 20:55:12 +0900 |
---|---|---|
committer | Hermet Park <chuneon.park@samsung.com> | 2020-04-24 20:55:12 +0900 |
commit | 3ca52b7a1a13b4ed8f1038d8e55717c97b635d59 (patch) | |
tree | 809cfba1c4e5fc7feca5dff5ebf55fd7e85b5868 | |
parent | f5516e896d690a233c1747cdc7c893db15c240c1 (diff) | |
download | efl-3ca52b7a1a13b4ed8f1038d8e55717c97b635d59.tar.gz |
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
-rw-r--r-- | src/modules/evas/engines/gl_common/evas_gl_context.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_context.c b/src/modules/evas/engines/gl_common/evas_gl_context.c index da361679bc..bf88cbdaf0 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_context.c +++ b/src/modules/evas/engines/gl_common/evas_gl_context.c @@ -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; |