Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

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


Modified Files:
        evas_outbuf.c 


Log Message:


oh STUPId me - i forgot to add current y co-ord for ptr offset! bah!

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/evas/src/lib/engines/buffer/evas_outbuf.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- evas_outbuf.c       30 Jul 2005 05:44:58 -0000      1.10
+++ evas_outbuf.c       24 Aug 2005 08:03:29 -0000      1.11
@@ -46,7 +46,7 @@
        (buf->dest) && (buf->dest_row_bytes == (buf->w * sizeof(DATA32))))
      {
        buf->priv.back_buf = evas_common_image_new();
-       buf->priv.back_buf->image = evas_common_image_surface_new( 
buf->priv.back_buf);
+       buf->priv.back_buf->image = 
evas_common_image_surface_new(buf->priv.back_buf);
        buf->priv.back_buf->image->w = w;
        buf->priv.back_buf->image->h = h;
        buf->priv.back_buf->image->data = buf->dest;
@@ -61,18 +61,16 @@
 evas_buffer_outbuf_buf_new_region_for_update(Outbuf *buf, int x, int y, int w, 
int h, int *cx, int *cy, int *cw, int *ch)
 {
    RGBA_Image *im;
+   DATA32 *ptr;
+   int xx, yy;
 
    if (buf->priv.back_buf)
      {
-       int xx, yy;
-
        *cx = x; *cy = y; *cw = w; *ch = h;
        for (yy = 0; yy < h; yy++)
          {
-            DATA32 *ptr;
-
             ptr = buf->priv.back_buf->image->data +
-              (y * buf->priv.back_buf->image->w) + x;
+              ((y + yy) * buf->priv.back_buf->image->w) + x;
             for (xx = 0; xx < w; xx++)
               {
                  A_VAL(ptr) = 0;




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to