From: Søren Sandmann Pedersen Date: Tue, 5 Jun 2007 15:33:17 +0000 (-0400) Subject: Fix bug in pixman_image_set_filter() where only the parameters were X-Git-Tag: 1.0_branch~1513 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ca61dc99b198243f08e6f1f3f96e3c87ff818b9;p=profile%2Fivi%2Fpixman.git Fix bug in pixman_image_set_filter() where only the parameters were updated, not the filter type. Reported by Michel Dänzer. --- diff --git a/pixman/pixman-image.c b/pixman/pixman-image.c index 0802b86..e7e5d24 100644 --- a/pixman/pixman-image.c +++ b/pixman/pixman-image.c @@ -351,8 +351,10 @@ pixman_image_set_filter (pixman_image_t *image, { image_common_t *common = (image_common_t *)image; - if (params != common->filter_params) + if (params != common->filter_params || filter != common->filter) { + common->filter = filter; + if (common->filter_params) free (common->filter_params);