Evas filters: Minor fix for consistency (clip_to_target)
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 4 Mar 2014 02:44:19 +0000 (11:44 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 4 Mar 2014 02:44:19 +0000 (11:44 +0900)
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

index 6d2d7f8..62b0198 100644 (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;