WWW-www.enlightenment.org pushed a commit to branch master.

http://git.enlightenment.org/website/www-content.git/commit/?id=ae4f3921c2513d89755051b8a7f0baab14007cee

commit ae4f3921c2513d89755051b8a7f0baab14007cee
Author: Jiwon Kim <jwkim0...@gmail.com>
Date:   Mon Aug 1 08:46:35 2016 -0700

    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 d4339a6..414df9f 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);

-- 


Reply via email to