From ae4f3921c2513d89755051b8a7f0baab14007cee Mon Sep 17 00:00:00 2001 From: Jiwon Kim Date: Mon, 1 Aug 2016 08:46:35 -0700 Subject: [PATCH] Wiki page image_objects changed with summary [fixed bug code in image_blur example] by Jiwon Kim --- pages/program_guide/evas/image_objects.txt | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/pages/program_guide/evas/image_objects.txt b/pages/program_guide/evas/image_objects.txt index d4339a66a..414df9fa8 100644 --- a/pages/program_guide/evas/image_objects.txt +++ b/pages/program_guide/evas/image_objects.txt @@ -363,16 +363,10 @@ void image_blur(Evas_Object *img) avg_color[1] /= blur_pixel_cnt; avg_color[2] /= blur_pixel_cnt; - for (xx = x; (xx < x + blur_size) && (xx < w); xx++) - { - for (yy = y; (yy < y + blur_size) && (yy < h); yy++) - { - int idx = (yy * w * 4) + (xx * 4); - img_src[idx + 0] = avg_color[0]; - img_src[idx + 1] = avg_color[1]; - img_src[idx + 2] = avg_color[2]; - } - } + int idx = (y * w * 4) + (x * 4); + img_src[idx + 0] = avg_color[0]; + img_src[idx + 1] = avg_color[1]; + img_src[idx + 2] = avg_color[2]; } } evas_object_image_data_update_add(img, 0, 0, w, h);