cedric pushed a commit to branch master.
commit 468eb14635c2f23157babfd5f477d401400d0405
Author: Cedric Bail <[email protected]>
Date: Tue Aug 6 15:44:43 2013 +0900
evas: fix comment to actually compile if you use them.
---
src/modules/evas/engines/software_x11/evas_engine.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/modules/evas/engines/software_x11/evas_engine.c
b/src/modules/evas/engines/software_x11/evas_engine.c
index da21b9b..c149b08 100644
--- a/src/modules/evas/engines/software_x11/evas_engine.c
+++ b/src/modules/evas/engines/software_x11/evas_engine.c
@@ -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);
-
-/*
+ /*
// 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
// 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.
if (rects)
{
+ int px1, py1, px2, py2;
+
px1 = rects->x; py1 = rects->y;
px2 = rects->x + rects->w; py2 = rects->y + rects->h;
EINA_INLIST_FOREACH(EINA_INLIST_GET(rects), r)
{
- if (r->x < x1) px1 = r->x;
- if (r->y < y1) py1 = r->y;
- if ((r->x + r->w) > x2) px2 = r->x + r->w;
- if ((r->y + r->h) > y2) py2 = r->y + r->h;
+ if (r->x < px1) px1 = r->x;
+ if (r->y < py1) py1 = r->y;
+ if ((r->x + r->w) > px2) px2 = r->x + r->w;
+ if ((r->y + r->h) > py2) py2 = r->y + r->h;
}
evas_common_tilebuf_free_render_rects(rects);
rects = calloc(1, sizeof(Tilebuf_Rect));
@@ -755,7 +756,7 @@ _merge_rects(Tilebuf *tb, Tilebuf_Rect *r1, Tilebuf_Rect
*r2, Tilebuf_Rect *r3)
rects->h = py2 - py1;
}
}
- */
+ */
evas_common_tilebuf_clear(tb);
return rects;
}
--
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk