From 825a3d837a33f226c879cd02ad15c3fba57e8b2c Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 23 Jan 2012 23:30:42 +1000 Subject: Update the EFL to what I'm actually using, coz I'm using some stuff not yet released. --- libraries/evas/src/lib/canvas/evas_map.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'libraries/evas/src/lib/canvas/evas_map.c') diff --git a/libraries/evas/src/lib/canvas/evas_map.c b/libraries/evas/src/lib/canvas/evas_map.c index fca8b3a..2359d5a 100644 --- a/libraries/evas/src/lib/canvas/evas_map.c +++ b/libraries/evas/src/lib/canvas/evas_map.c @@ -81,17 +81,19 @@ _evas_map_calc_map_geometry(Evas_Object *obj) p = obj->cur.map->points; p_end = p + obj->cur.map->count; - x1 = lround(p->x); - x2 = lround(p->x); - y1 = lround(p->y); - y2 = lround(p->y); + x1 = x2 = lround(p->x); + y1 = y2 = lround(p->y); p++; for (; p < p_end; p++) { - if (p->x < x1) x1 = p->x; - if (p->x > x2) x2 = p->x; - if (p->y < y1) y1 = p->y; - if (p->y > y2) y2 = p->y; + Evas_Coord x, y; + + x = lround(p->x); + y = lround(p->y); + if (x < x1) x1 = x; + if (x > x2) x2 = x; + if (y < y1) y1 = y; + if (y > y2) y2 = y; } // this causes clip-out bugs now mapped objs canbe opaque!!! // // add 1 pixel of fuzz around the map region to ensure updates are correct -- cgit v1.1