elm_map: Fix elm_map_overlay_color_get

Summary:
Add all supports types for overlay color (such as in Doc.)
@fix

Reviewers: cedric, Hermet, raster, NikaWhite, jpeg

Reviewed By: jpeg

Subscribers: jpeg, artem.popov

Differential Revision: https://phab.enlightenment.org/D4800
This commit is contained in:
se.osadchy 2017-04-19 14:45:04 +09:00 committed by Jean-Philippe Andre
parent ec71288548
commit abd71b2cfc
1 changed files with 13 additions and 6 deletions

View File

@ -5202,14 +5202,21 @@ elm_map_overlay_color_get(const Elm_Map_Overlay *overlay,
EINA_SAFETY_ON_NULL_RETURN(overlay->wsd);
ELM_MAP_CHECK((overlay->wsd)->obj);
if (overlay->type == ELM_MAP_OVERLAY_TYPE_ROUTE)
switch (overlay->type)
{
if (r) *r = overlay->c.r;
if (g) *g = overlay->c.g;
if (b) *b = overlay->c.b;
if (a) *a = overlay->c.a;
case ELM_MAP_OVERLAY_TYPE_ROUTE:
case ELM_MAP_OVERLAY_TYPE_DEFAULT:
case ELM_MAP_OVERLAY_TYPE_CLASS:
if (r) *r = overlay->c.r;
if (g) *g = overlay->c.g;
if (b) *b = overlay->c.b;
if (a) *a = overlay->c.a;
break;
default:
ERR("Not supported overlay type: %d", overlay->type);
break;
}
else ERR("Not supported overlay type: %d", overlay->type);
}
EAPI void