forked from enlightenment/efl
Fix rounding error in map clip bounds calculation
SVN revision: 66111
This commit is contained in:
parent
25b5ff52f2
commit
3e4e9b76ab
|
@ -539,3 +539,8 @@
|
||||||
* Textblock: Added evas_textblock_markup_to_plain.
|
* Textblock: Added evas_textblock_markup_to_plain.
|
||||||
This lets you convert textblock markup to plain text.
|
This lets you convert textblock markup to plain text.
|
||||||
This converts formats and everything correctly.
|
This converts formats and everything correctly.
|
||||||
|
|
||||||
|
2011-12-12 Carsten Haitzler (The Rasterman)
|
||||||
|
|
||||||
|
* Fix rounding error in map clip bounds calculation
|
||||||
|
|
||||||
|
|
|
@ -86,10 +86,14 @@ _evas_map_calc_map_geometry(Evas_Object *obj)
|
||||||
p++;
|
p++;
|
||||||
for (; p < p_end; p++)
|
for (; p < p_end; p++)
|
||||||
{
|
{
|
||||||
if (p->x < x1) x1 = p->x;
|
Evas_Coord x, y;
|
||||||
if (p->x > x2) x2 = p->x;
|
|
||||||
if (p->y < y1) y1 = p->y;
|
x = lround(p->x);
|
||||||
if (p->y > y2) y2 = p->y;
|
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!!!
|
// this causes clip-out bugs now mapped objs canbe opaque!!!
|
||||||
// // add 1 pixel of fuzz around the map region to ensure updates are correct
|
// // add 1 pixel of fuzz around the map region to ensure updates are correct
|
||||||
|
|
Loading…
Reference in New Issue