From: Jean-Philippe Andre Date: Tue, 4 Mar 2014 02:44:19 +0000 (+0900) Subject: Evas filters: Minor fix for consistency (clip_to_target) X-Git-Tag: v1.9.0+464+gcaabcbe~326 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51f216973a4da9e0dd254ed6c301b14ac6c0eaf3;p=platform%2Fupstream%2Fefl.git Evas filters: Minor fix for consistency (clip_to_target) Make sure sx and sy are properly set. No need to backport as the function actually expect these values to be initialized to 0 in the first place. --- diff --git a/src/lib/evas/filters/evas_filter.c b/src/lib/evas/filters/evas_filter.c index 6d2d7f8d23..62b019804f 100644 --- a/src/lib/evas/filters/evas_filter.c +++ b/src/lib/evas/filters/evas_filter.c @@ -1573,6 +1573,7 @@ _clip_to_target(int *sx /* OUT */, int *sy /* OUT */, int sw, int sh, } else { + (*sx) = 0; (*dx) = 0; (*cols) = sw; if ((*cols) > dw) (*cols) = dw; @@ -1595,6 +1596,7 @@ _clip_to_target(int *sx /* OUT */, int *sy /* OUT */, int sw, int sh, } else { + (*sy) = 0; (*dy) = 0; (*rows) = sh; if ((*rows) > dh) (*rows) = dh;