From a815f4ffcfdfe6be5f0dd0acb015fed54d9f4150 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Wed, 24 Aug 2005 08:03:29 +0000 Subject: [PATCH] oh STUPId me - i forgot to add current y co-ord for ptr offset! bah! SVN revision: 16305 --- legacy/evas/src/lib/engines/buffer/evas_outbuf.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/legacy/evas/src/lib/engines/buffer/evas_outbuf.c b/legacy/evas/src/lib/engines/buffer/evas_outbuf.c index f0f8d90563..c34dd1e46e 100644 --- a/legacy/evas/src/lib/engines/buffer/evas_outbuf.c +++ b/legacy/evas/src/lib/engines/buffer/evas_outbuf.c @@ -46,7 +46,7 @@ evas_buffer_outbuf_buf_setup_fb(int w, int h, Outbuf_Depth depth, void *dest, in (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 @@ RGBA_Image * 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;