Enlightenment CVS committal

Author  : barbieri
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/modules/engines/software_16


Modified Files:
        evas_soft16_main.c 


Log Message:
Fix bug with out-of-screen paiting in software_16

Things like expedite's "Image Qualit Scale" that blited with x,y
negative were giving incorrect clip rectangle.


===================================================================
RCS file: 
/cvs/e/e17/libs/evas/src/modules/engines/software_16/evas_soft16_main.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- evas_soft16_main.c  19 Nov 2007 22:27:02 -0000      1.19
+++ evas_soft16_main.c  2 Jan 2008 20:58:29 -0000       1.20
@@ -308,7 +308,7 @@
    if (dst_clip->w <= 0) return 0;
    if (dst_clip->x >= dst_max_x) return 0;
 
-   _shrink(&dst_clip->x, &dst_clip->w, dst->x, dst_max_x);
+   _shrink(&dst_clip->x, &dst_clip->w, 0, dst_max_x);
    if (dst_clip->w <= 0) return 0;
 
    /* sanitise y */
@@ -335,7 +335,7 @@
    if (dst_clip->h <= 0) return 0;
    if (dst_clip->y >= dst_max_y) return 0;
 
-   _shrink(&dst_clip->y, &dst_clip->h, dst->y, dst_max_y);
+   _shrink(&dst_clip->y, &dst_clip->h, 0, dst_max_y);
    if (dst_clip->h <= 0) return 0;
 
    return 1;



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to