From 51f216973a4da9e0dd254ed6c301b14ac6c0eaf3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Tue, 4 Mar 2014 11:44:19 +0900 Subject: [PATCH] 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. --- src/lib/evas/filters/evas_filter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/evas/filters/evas_filter.c b/src/lib/evas/filters/evas_filter.c index 6d2d7f8..62b0198 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; -- 2.7.4