summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/engines/common/evas_scale_sample.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/engines/common/evas_scale_sample.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/legacy/evas/src/lib/engines/common/evas_scale_sample.c b/legacy/evas/src/lib/engines/common/evas_scale_sample.c
index b505450f9e..23f8e50656 100644
--- a/legacy/evas/src/lib/engines/common/evas_scale_sample.c
+++ b/legacy/evas/src/lib/engines/common/evas_scale_sample.c
@@ -37,7 +37,7 @@ evas_common_scale_rgba_in_to_out_clip_sample(RGBA_Image *src, RGBA_Image *dst,
37 /* handle cutouts here! */ 37 /* handle cutouts here! */
38 38
39 if ((dst_region_w <= 0) || (dst_region_h <= 0)) return; 39 if ((dst_region_w <= 0) || (dst_region_h <= 0)) return;
40 if (!(RECTS_INTERSECT(dst_region_x, dst_region_y, dst_region_w, dst_region_h, 0, 0, dst->image->w, dst->image->h))) 40 if (!(RECTS_INTERSECT(dst_region_x, dst_region_y, dst_region_w, dst_region_h, 0, 0, dst->cache_entry.w, dst->cache_entry.h)))
41 return; 41 return;
42 /* no cutouts - cut right to the chase */ 42 /* no cutouts - cut right to the chase */
43 if (!dc->cutout.rects) 43 if (!dc->cutout.rects)
@@ -51,7 +51,7 @@ evas_common_scale_rgba_in_to_out_clip_sample(RGBA_Image *src, RGBA_Image *dst,
51 } 51 }
52 /* save out clip info */ 52 /* save out clip info */
53 c = dc->clip.use; cx = dc->clip.x; cy = dc->clip.y; cw = dc->clip.w; ch = dc->clip.h; 53 c = dc->clip.use; cx = dc->clip.x; cy = dc->clip.y; cw = dc->clip.w; ch = dc->clip.h;
54 evas_common_draw_context_clip_clip(dc, 0, 0, dst->image->w, dst->image->h); 54 evas_common_draw_context_clip_clip(dc, 0, 0, dst->cache_entry.w, dst->cache_entry.h);
55 evas_common_draw_context_clip_clip(dc, dst_region_x, dst_region_y, dst_region_w, dst_region_h); 55 evas_common_draw_context_clip_clip(dc, dst_region_x, dst_region_y, dst_region_w, dst_region_h);
56 /* our clip is 0 size.. abort */ 56 /* our clip is 0 size.. abort */
57 if ((dc->clip.w <= 0) || (dc->clip.h <= 0)) 57 if ((dc->clip.w <= 0) || (dc->clip.h <= 0))
@@ -94,18 +94,18 @@ scale_rgba_in_to_out_clip_sample_internal(RGBA_Image *src, RGBA_Image *dst,
94 int src_w, src_h, dst_w, dst_h; 94 int src_w, src_h, dst_w, dst_h;
95 RGBA_Gfx_Func func; 95 RGBA_Gfx_Func func;
96 96
97 if (!(RECTS_INTERSECT(dst_region_x, dst_region_y, dst_region_w, dst_region_h, 0, 0, dst->image->w, dst->image->h))) 97 if (!(RECTS_INTERSECT(dst_region_x, dst_region_y, dst_region_w, dst_region_h, 0, 0, dst->cache_entry.w, dst->cache_entry.h)))
98 return; 98 return;
99 if (!(RECTS_INTERSECT(src_region_x, src_region_y, src_region_w, src_region_h, 0, 0, src->image->w, src->image->h))) 99 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)))
100 return; 100 return;
101 101
102 src_w = src->image->w; 102 src_w = src->cache_entry.w;
103 src_h = src->image->h; 103 src_h = src->cache_entry.h;
104 dst_w = dst->image->w; 104 dst_w = dst->cache_entry.w;
105 dst_h = dst->image->h; 105 dst_h = dst->cache_entry.h;
106 106
107 src_data = src->image->data; 107 src_data = src->image.data;
108 dst_data = dst->image->data; 108 dst_data = dst->image.data;
109 109
110 if (dc->clip.use) 110 if (dc->clip.use)
111 { 111 {