From: nash Date: Sun, 1 May 2011 06:39:22 +0000 (+0000) Subject: evas: filter: Use the correct fields in filter_set X-Git-Tag: submit/trunk/20120815.174732~1584 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7da97c5312fc88b655e0bb810b31c9b6d7e2caec;p=profile%2Fivi%2Fevas.git evas: filter: Use the correct fields in filter_set Strangely, not everything is a blur. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@59066 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/canvas/evas_filter.c b/src/lib/canvas/evas_filter.c index 903464a..88a7d96 100644 --- a/src/lib/canvas/evas_filter.c +++ b/src/lib/canvas/evas_filter.c @@ -282,7 +282,8 @@ evas_object_filter_param_int_get(Evas_Object *o, const char *param) if ((!o->filter) || (!o->filter->data)) return -1; - fields = blurfields; + fields = filterfields[o->filter->filter]; + if (!fields) return -1; data = o->filter->data; for (i = 0; fields[i].field; i++) @@ -343,7 +344,9 @@ evas_object_filter_param_float_set(Evas_Object *o, const char *param, if ((!o->filter) || (!o->filter->data)) return EINA_FALSE; rv = EINA_FALSE; - fields = blurfields; + fields = filterfields[o->filter->filter]; + if (!fields) return EINA_FALSE; + data = o->filter->data; for (i = 0; fields[i].field; i++) @@ -375,7 +378,8 @@ evas_object_filter_param_float_get(Evas_Object *o, const char *param) if ((!o->filter) || (!o->filter->data)) return -1; - fields = blurfields; + fields = filterfields[o->filter->filter]; + if (!fields) return -1; data = o->filter->data; for (i = 0; fields[i].field; i++)