summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_context.c
diff options
context:
space:
mode:
authorAli <ali198724@gmail.com>2020-04-24 20:55:12 +0900
committerHermet Park <chuneon.park@samsung.com>2020-04-24 20:55:12 +0900
commit3ca52b7a1a13b4ed8f1038d8e55717c97b635d59 (patch)
tree809cfba1c4e5fc7feca5dff5ebf55fd7e85b5868 /src/modules/evas/engines/gl_common/evas_gl_context.c
parentf5516e896d690a233c1747cdc7c893db15c240c1 (diff)
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
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_context.c12
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,
2292 sy = tex->im->h - sh - sy; 2292 sy = tex->im->h - sh - sy;
2293 } 2293 }
2294 2294
2295 if (tex->im && 2295 else if (tex->im &&
2296 (tex->im->orient == EVAS_IMAGE_ORIENT_180)) 2296 (tex->im->orient == EVAS_IMAGE_ORIENT_180))
2297 { 2297 {
2298 sx = tex->im->w - sw - sx; 2298 sx = tex->im->w - sw - sx;
2299 sy = tex->im->h - sh - sy; 2299 sy = tex->im->h - sh - sy;
2300 } 2300 }
2301 2301
2302 if (tex->im && 2302 else if (tex->im &&
2303 (tex->im->orient == EVAS_IMAGE_ORIENT_270)) 2303 (tex->im->orient == EVAS_IMAGE_ORIENT_270))
2304 { 2304 {
2305 double tmp; 2305 double tmp;
@@ -2310,19 +2310,19 @@ evas_gl_common_context_image_push(Evas_Engine_GL_Context *gc,
2310 sx = tex->im->w - sw - sx; 2310 sx = tex->im->w - sw - sx;
2311 } 2311 }
2312 2312
2313 if (tex->im && 2313 else if (tex->im &&
2314 (tex->im->orient == EVAS_IMAGE_FLIP_HORIZONTAL)) 2314 (tex->im->orient == EVAS_IMAGE_FLIP_HORIZONTAL))
2315 { 2315 {
2316 sx = tex->im->w - sw - sx; 2316 sx = tex->im->w - sw - sx;
2317 } 2317 }
2318 2318
2319 if (tex->im && 2319 else if (tex->im &&
2320 (tex->im->orient == EVAS_IMAGE_FLIP_VERTICAL)) 2320 (tex->im->orient == EVAS_IMAGE_FLIP_VERTICAL))
2321 { 2321 {
2322 sy = tex->im->h - sh - sy; 2322 sy = tex->im->h - sh - sy;
2323 } 2323 }
2324 2324
2325 if (tex->im && 2325 else if (tex->im &&
2326 (tex->im->orient == EVAS_IMAGE_FLIP_TRANSVERSE)) 2326 (tex->im->orient == EVAS_IMAGE_FLIP_TRANSVERSE))
2327 { 2327 {
2328 double tmp; 2328 double tmp;
@@ -2334,7 +2334,7 @@ evas_gl_common_context_image_push(Evas_Engine_GL_Context *gc,
2334 sy = tex->im->h - sh - sy; 2334 sy = tex->im->h - sh - sy;
2335 } 2335 }
2336 2336
2337 if (tex->im && 2337 else if (tex->im &&
2338 (tex->im->orient == EVAS_IMAGE_FLIP_TRANSPOSE)) 2338 (tex->im->orient == EVAS_IMAGE_FLIP_TRANSPOSE))
2339 { 2339 {
2340 double tmp; 2340 double tmp;