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.
This commit is contained in:
Jean-Philippe Andre 2014-03-04 11:44:19 +09:00
parent 8e795109ac
commit 51f216973a
1 changed files with 2 additions and 0 deletions

View File

@ -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;