Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

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


Modified Files:
        evas_outbuf.c 


Log Message:


same as previous commit.

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/modules/engines/buffer/evas_outbuf.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- evas_outbuf.c       31 May 2006 18:33:46 -0000      1.9
+++ evas_outbuf.c       30 Sep 2006 10:18:33 -0000      1.10
@@ -81,22 +81,20 @@
 {
    RGBA_Image *im;
    DATA32 *ptr;
-   int xx, yy;
 
    if (buf->priv.back_buf)
      {
        *cx = x; *cy = y; *cw = w; *ch = h;
        if (buf->priv.back_buf->flags & RGBA_IMAGE_HAS_ALPHA)
          {
-            for (yy = 0; yy < h; yy++)
+            int  ww = w;
+            ptr = buf->priv.back_buf->image->data + (y * 
buf->priv.back_buf->image->w) + x;
+            while (h--)
               {
-                 ptr = buf->priv.back_buf->image->data +
-                   ((y + yy) * buf->priv.back_buf->image->w) + x;
-                 for (xx = 0; xx < w; xx++)
-                   {
-                      A_VAL(ptr) = 0;
-                      ptr++;
-                   }
+                 while (w--)
+                   *ptr++ = 0;
+                 w = ww;
+                 ptr += (buf->priv.back_buf->image->w - w);
               }
          }
        return buf->priv.back_buf;



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to