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

SVN revision: 16305
This commit is contained in:
Carsten Haitzler 2005-08-24 08:03:29 +00:00
parent e90fd32b80
commit a815f4ffcf
1 changed files with 4 additions and 6 deletions

View File

@ -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;