forked from enlightenment/efl
Evas (wayland_shm): Fix regression where resizing window down would
leave artifacts. SVN revision: 73253
This commit is contained in:
parent
413bf159a4
commit
43af930a16
|
@ -261,9 +261,9 @@ eng_output_redraws_next_update_get(void *data, int *x, int *y, int *w, int *h, i
|
|||
re->rects = NULL;
|
||||
re->end = EINA_TRUE;
|
||||
}
|
||||
/* 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; */
|
||||
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 =
|
||||
re->outbuf_new_region_for_update(re->ob, ux, uy, uw, uh, cx, cy, cw, ch);
|
||||
if (x) *x = ux;
|
||||
|
|
|
@ -48,10 +48,6 @@ struct _Outbuf
|
|||
void *dest;
|
||||
|
||||
RGBA_Image *buffer;
|
||||
Eina_List *buffer_regions;
|
||||
|
||||
Eina_List *pending_writes;
|
||||
Eina_List *prev_pending_writes;
|
||||
|
||||
Eina_Bool destination_alpha : 1;
|
||||
} priv;
|
||||
|
|
|
@ -125,10 +125,6 @@ evas_outbuf_push_updated_region(Outbuf *ob, RGBA_Image *update, int x, int y, in
|
|||
|
||||
bytes = ((w * sizeof(int)) * h);
|
||||
dest = (DATA32 *)((DATA8 *)(ob->priv.dest) + (y * bytes) + (x * 4));
|
||||
/* if (ob->func.new_update_region) */
|
||||
/* { */
|
||||
/* dest = ob->func.new_update_region(x, y, w, h, &bytes); */
|
||||
/* } */
|
||||
|
||||
if (!ob->priv.buffer)
|
||||
{
|
||||
|
@ -148,8 +144,6 @@ evas_outbuf_push_updated_region(Outbuf *ob, RGBA_Image *update, int x, int y, in
|
|||
}
|
||||
}
|
||||
}
|
||||
/* if (ob->func.free_update_region) */
|
||||
/* ob->func.free_update_region(x, y, w, h, dest); */
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue