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->rects = NULL;
|
||||||
re->end = EINA_TRUE;
|
re->end = EINA_TRUE;
|
||||||
}
|
}
|
||||||
/* if ((ux + uw) > re->ob->w) uw = re->ob->w - ux; */
|
if ((ux + uw) > re->ob->w) uw = re->ob->w - ux;
|
||||||
/* if ((uy + uh) > re->ob->h) uh = re->ob->h - uy; */
|
if ((uy + uh) > re->ob->h) uh = re->ob->h - uy;
|
||||||
/* if ((uw <= 0) || (uh <= 0)) return NULL; */
|
if ((uw <= 0) || (uh <= 0)) return NULL;
|
||||||
surface =
|
surface =
|
||||||
re->outbuf_new_region_for_update(re->ob, ux, uy, uw, uh, cx, cy, cw, ch);
|
re->outbuf_new_region_for_update(re->ob, ux, uy, uw, uh, cx, cy, cw, ch);
|
||||||
if (x) *x = ux;
|
if (x) *x = ux;
|
||||||
|
|
|
@ -48,10 +48,6 @@ struct _Outbuf
|
||||||
void *dest;
|
void *dest;
|
||||||
|
|
||||||
RGBA_Image *buffer;
|
RGBA_Image *buffer;
|
||||||
Eina_List *buffer_regions;
|
|
||||||
|
|
||||||
Eina_List *pending_writes;
|
|
||||||
Eina_List *prev_pending_writes;
|
|
||||||
|
|
||||||
Eina_Bool destination_alpha : 1;
|
Eina_Bool destination_alpha : 1;
|
||||||
} priv;
|
} 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);
|
bytes = ((w * sizeof(int)) * h);
|
||||||
dest = (DATA32 *)((DATA8 *)(ob->priv.dest) + (y * bytes) + (x * 4));
|
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)
|
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
|
void
|
||||||
|
|
Loading…
Reference in New Issue