jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=51f216973a4da9e0dd254ed6c301b14ac6c0eaf3

commit 51f216973a4da9e0dd254ed6c301b14ac6c0eaf3
Author: Jean-Philippe Andre <[email protected]>
Date:   Tue Mar 4 11:44:19 2014 +0900

    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;

-- 


Reply via email to