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.
This commit is contained in:
parent
7e552977a6
commit
092866c058
|
@ -171,7 +171,8 @@ _evas_map_new(int count, Eina_Bool sync)
|
||||||
void
|
void
|
||||||
_evas_map_reset(Evas_Map *m)
|
_evas_map_reset(Evas_Map *m)
|
||||||
{
|
{
|
||||||
int alloc;
|
int alloc, count;
|
||||||
|
Eina_Bool sync;
|
||||||
|
|
||||||
if (!m) return;
|
if (!m) return;
|
||||||
|
|
||||||
|
@ -180,8 +181,10 @@ _evas_map_reset(Evas_Map *m)
|
||||||
alloc = (m->count < 4) ? 4 : m->count;
|
alloc = (m->count < 4) ? 4 : m->count;
|
||||||
if (alloc & 0x1) alloc ++;
|
if (alloc & 0x1) alloc ++;
|
||||||
|
|
||||||
|
count = m->count;
|
||||||
|
sync = m->move_sync.enabled;
|
||||||
memset(m, 0, sizeof(Evas_Map) + (alloc * sizeof(Evas_Map_Point)));
|
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
|
static inline Eina_Bool
|
||||||
|
|
Loading…
Reference in New Issue