aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorchuneon.park <chuneon.park@samsung.com>2013-02-22 22:42:48 +0900
committerchuneon.park <chuneon.park@samsung.com>2013-02-22 22:42:48 +0900
commit1a0ee8cb872f2af0030626bd2abd979e48f64c7c (patch)
tree901c25835ed9d517fbde1c6577d5314411a9dca3 /src
parente79cb473a850f163eda0a93da88e4f1bde60ffeb (diff)
downloadefl-1a0ee8cb872f2af0030626bd2abd979e48f64c7c.tar.gz
efl-1a0ee8cb872f2af0030626bd2abd979e48f64c7c.tar.xz
efl-1a0ee8cb872f2af0030626bd2abd979e48f64c7c.zip
evas/common - return function as soon as possible.
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/common/evas_scale_sample.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/evas/common/evas_scale_sample.c b/src/lib/evas/common/evas_scale_sample.c
index ec80f1efe..cec5b0f01 100644
--- a/src/lib/evas/common/evas_scale_sample.c
+++ b/src/lib/evas/common/evas_scale_sample.c
@@ -74,6 +74,9 @@ evas_common_scale_rgba_sample_draw(RGBA_Image *src, RGBA_Image *dst, int dst_cli
if (!(RECTS_INTERSECT(src_region_x, src_region_y, src_region_w, src_region_h,
0, 0, src->cache_entry.w, src->cache_entry.h))) return;
+ if ((src_region_w <= 0) || (src_region_h <= 0) ||
+ (dst_region_w <= 0) || (dst_region_h <= 0)) return;
+
src_w = src->cache_entry.w;
src_h = src->cache_entry.h;
dst_w = dst->cache_entry.w;
@@ -112,10 +115,7 @@ evas_common_scale_rgba_sample_draw(RGBA_Image *src, RGBA_Image *dst, int dst_cli
if ((dst_clip_y + dst_clip_h) > (dst_region_y + dst_region_h))
dst_clip_h = dst_region_y + dst_region_h - dst_clip_y;
- if ((src_region_w <= 0) || (src_region_h <= 0) ||
- (dst_region_w <= 0) || (dst_region_h <= 0) ||
- (dst_clip_w <= 0) || (dst_clip_h <= 0))
- return;
+ if ((dst_clip_w <= 0) || (dst_clip_h <= 0)) return;
/* sanitise x */
if (src_region_x < 0)