aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_map.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-06-09 13:46:33 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-06-09 13:46:33 +0900
commit092866c0589f118f88c428b9e5665b5a1a837184 (patch)
treeca11c1d38af64b0b5a191a81f92ff9ab42965b21 /src/lib/evas/canvas/evas_map.c
parentexamples: Flesh out the evas-buffer-simple example (diff)
downloadefl-092866c0589f118f88c428b9e5665b5a1a837184.tar.gz
map: Fix efl.gfx.map render
Internally the call to map_reset was setting the count to 0 rendering the map data invalid and useless.
Diffstat (limited to 'src/lib/evas/canvas/evas_map.c')
-rw-r--r--src/lib/evas/canvas/evas_map.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_map.c b/src/lib/evas/canvas/evas_map.c
index 5dd5fc1d29..6e81c771eb 100644
--- a/src/lib/evas/canvas/evas_map.c
+++ b/src/lib/evas/canvas/evas_map.c
@@ -171,7 +171,8 @@ _evas_map_new(int count, Eina_Bool sync)
void
_evas_map_reset(Evas_Map *m)
{
- int alloc;
+ int alloc, count;
+ Eina_Bool sync;
if (!m) return;
@@ -180,8 +181,10 @@ _evas_map_reset(Evas_Map *m)
alloc = (m->count < 4) ? 4 : m->count;
if (alloc & 0x1) alloc ++;
+ count = m->count;
+ sync = m->move_sync.enabled;
memset(m, 0, sizeof(Evas_Map) + (alloc * sizeof(Evas_Map_Point)));
- _evas_map_init(m, m->count, m->move_sync.enabled);
+ _evas_map_init(m, count, sync);
}
static inline Eina_Bool