forked from enlightenment/efl
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:
parent
8e795109ac
commit
51f216973a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue