summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ec80f1efea..cec5b0f011 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
74 if (!(RECTS_INTERSECT(src_region_x, src_region_y, src_region_w, src_region_h, 74 if (!(RECTS_INTERSECT(src_region_x, src_region_y, src_region_w, src_region_h,
75 0, 0, src->cache_entry.w, src->cache_entry.h))) return; 75 0, 0, src->cache_entry.w, src->cache_entry.h))) return;
76 76
77 if ((src_region_w <= 0) || (src_region_h <= 0) ||
78 (dst_region_w <= 0) || (dst_region_h <= 0)) return;
79
77 src_w = src->cache_entry.w; 80 src_w = src->cache_entry.w;
78 src_h = src->cache_entry.h; 81 src_h = src->cache_entry.h;
79 dst_w = dst->cache_entry.w; 82 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
112 if ((dst_clip_y + dst_clip_h) > (dst_region_y + dst_region_h)) 115 if ((dst_clip_y + dst_clip_h) > (dst_region_y + dst_region_h))
113 dst_clip_h = dst_region_y + dst_region_h - dst_clip_y; 116 dst_clip_h = dst_region_y + dst_region_h - dst_clip_y;
114 117
115 if ((src_region_w <= 0) || (src_region_h <= 0) || 118 if ((dst_clip_w <= 0) || (dst_clip_h <= 0)) return;
116 (dst_region_w <= 0) || (dst_region_h <= 0) ||
117 (dst_clip_w <= 0) || (dst_clip_h <= 0))
118 return;
119 119
120 /* sanitise x */ 120 /* sanitise x */
121 if (src_region_x < 0) 121 if (src_region_x < 0)