forked from enlightenment/efl
evas: fix comment to actually compile if you use them.
This commit is contained in:
parent
c90179ce86
commit
468eb14635
|
@ -728,22 +728,23 @@ _merge_rects(Tilebuf *tb, Tilebuf_Rect *r1, Tilebuf_Rect *r2, Tilebuf_Rect *r3)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rects = evas_common_tilebuf_get_render_rects(tb);
|
rects = evas_common_tilebuf_get_render_rects(tb);
|
||||||
|
/*
|
||||||
/*
|
|
||||||
// bounding box -> make a bounding box single region update of all regions.
|
// bounding box -> make a bounding box single region update of all regions.
|
||||||
// yes we could try and be smart and figure out size of regions, how far
|
// yes we could try and be smart and figure out size of regions, how far
|
||||||
// apart etc. etc. to try and figure out an optimal "set". this is a tradeoff
|
// apart etc. etc. to try and figure out an optimal "set". this is a tradeoff
|
||||||
// between multiple update regions to render and total pixels to render.
|
// between multiple update regions to render and total pixels to render.
|
||||||
if (rects)
|
if (rects)
|
||||||
{
|
{
|
||||||
|
int px1, py1, px2, py2;
|
||||||
|
|
||||||
px1 = rects->x; py1 = rects->y;
|
px1 = rects->x; py1 = rects->y;
|
||||||
px2 = rects->x + rects->w; py2 = rects->y + rects->h;
|
px2 = rects->x + rects->w; py2 = rects->y + rects->h;
|
||||||
EINA_INLIST_FOREACH(EINA_INLIST_GET(rects), r)
|
EINA_INLIST_FOREACH(EINA_INLIST_GET(rects), r)
|
||||||
{
|
{
|
||||||
if (r->x < x1) px1 = r->x;
|
if (r->x < px1) px1 = r->x;
|
||||||
if (r->y < y1) py1 = r->y;
|
if (r->y < py1) py1 = r->y;
|
||||||
if ((r->x + r->w) > x2) px2 = r->x + r->w;
|
if ((r->x + r->w) > px2) px2 = r->x + r->w;
|
||||||
if ((r->y + r->h) > y2) py2 = r->y + r->h;
|
if ((r->y + r->h) > py2) py2 = r->y + r->h;
|
||||||
}
|
}
|
||||||
evas_common_tilebuf_free_render_rects(rects);
|
evas_common_tilebuf_free_render_rects(rects);
|
||||||
rects = calloc(1, sizeof(Tilebuf_Rect));
|
rects = calloc(1, sizeof(Tilebuf_Rect));
|
||||||
|
|
Loading…
Reference in New Issue