summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSungtaek Hong <sth253.hong@samsung.com>2016-09-21 17:40:53 +0900
committerHermet Park <hermet@hermet.pe.kr>2016-09-21 17:41:47 +0900
commit57c4d83b2e0de0a1a9e939f7762c1961e47cf74c (patch)
tree8e8c689532d9aba9cf94086c145f0bcb0da95707
parent3689a803dbfe1297e706d2fbfde239d641652de1 (diff)
evas: remove unnecessary check for clip coords.
Summary: (dst_clip_w <= 0 || dst_clip_h <= 0) is already checked. Reviewers: jpeg, cedric, Hermet Reviewed By: Hermet Subscribers: conr2d Differential Revision: https://phab.enlightenment.org/D4303
-rw-r--r--src/lib/evas/common/evas_scale_sample.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/evas/common/evas_scale_sample.c b/src/lib/evas/common/evas_scale_sample.c
index 008e43dea2..71a805ee2f 100644
--- a/src/lib/evas/common/evas_scale_sample.c
+++ b/src/lib/evas/common/evas_scale_sample.c
@@ -553,7 +553,6 @@ scale_rgba_in_to_out_clip_sample_internal(RGBA_Image *src, RGBA_Image *dst,
553 } 553 }
554 if (dst_region_w <= 0) return EINA_FALSE; 554 if (dst_region_w <= 0) return EINA_FALSE;
555 if (src_region_w <= 0) return EINA_FALSE; 555 if (src_region_w <= 0) return EINA_FALSE;
556 if (dst_clip_w <= 0) return EINA_FALSE;
557 if (dst_clip_x >= dst_w) return EINA_FALSE; 556 if (dst_clip_x >= dst_w) return EINA_FALSE;
558 if (dst_clip_x < dst_region_x) 557 if (dst_clip_x < dst_region_x)
559 { 558 {
@@ -582,7 +581,6 @@ scale_rgba_in_to_out_clip_sample_internal(RGBA_Image *src, RGBA_Image *dst,
582 } 581 }
583 if (dst_region_h <= 0) return EINA_FALSE; 582 if (dst_region_h <= 0) return EINA_FALSE;
584 if (src_region_h <= 0) return EINA_FALSE; 583 if (src_region_h <= 0) return EINA_FALSE;
585 if (dst_clip_h <= 0) return EINA_FALSE;
586 if (dst_clip_y >= dst_h) return EINA_FALSE; 584 if (dst_clip_y >= dst_h) return EINA_FALSE;
587 if (dst_clip_y < dst_region_y) 585 if (dst_clip_y < dst_region_y)
588 { 586 {