evas map: fix the rendering problem.
authorHermet Park <hermet@hermet.pe.kr>
Mon, 12 Sep 2016 07:50:00 +0000 (16:50 +0900)
committerHermet Park <hermet@hermet.pe.kr>
Mon, 12 Sep 2016 07:50:00 +0000 (16:50 +0900)
commite8fcc41e40dee07d062bff51636e464ff9d98215
treef574cb4a828c6e96b96d53c86a1ad6e9e964f3d7
parentffe53365065d043e4ddf302fcbc02c988fac3430
evas map: fix the rendering problem.

I got an issue report about map rendering.
After investigated, I found that was introduced by data overflow.

For fast computation, evas map uses integer data type rather than float,
that gives up some range of data size.

So, if vertex range is a little large but still reasonable,
polygon won'be properly displayed due to the integer overflow.

We can fix this by changing FPc data type to 64 bits (ie, long long)
But I didn't do yet though I can simply fix this costlessly.

By the way, my test case map points are below.

0: -1715, -5499
1: -83, -1011
2: 1957, 5721
3: 325, 1233

and gl result is perfect but sw is totally broken.

@fix
src/lib/evas/common/evas_map_image.c