Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/engines/buffer


Modified Files:
        evas_engine.c 


Log Message:


if outbuf != multiple of 16... clip

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/engines/buffer/evas_engine.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- evas_engine.c       23 Jan 2004 02:13:31 -0000      1.7
+++ evas_engine.c       16 Feb 2004 09:43:44 -0000      1.8
@@ -411,6 +411,9 @@
        re->end = 1;
      }
    
+   if ((ux + uw) > re->ob->w) uw = re->ob->w - ux;
+   if ((uy + uh) > re->ob->h) uh = re->ob->h - uy;
+   if ((uw <= 0) || (uh <= 0)) return NULL;
    surface = evas_buffer_outbuf_buf_new_region_for_update(re->ob, 
                                                          ux, uy, uw, uh, 
                                                          cx, cy, cw, ch);




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to