formatting, EAPI and add a copy function

SVN revision: 24785
This commit is contained in:
rephorm 2006-08-16 04:43:20 +00:00 committed by rephorm
parent b8ef0f8089
commit e78c1143fe
1 changed files with 13 additions and 0 deletions

View File

@ -17,3 +17,16 @@ e_color_update_hsv(E_Color *ec)
else
evas_color_hsv_to_rgb(ec->h, ec->s, ec->v, &(ec->r), &(ec->g), &(ec->b));
}
void
e_color_copy(E_Color *from, E_Color *to)
{
if (!from || !to) return;
to->r = from->r;
to->g = from->g;
to->b = from->b;
to->h = from->h;
to->s = from->s;
to->v = from->v;
to->a = from->a;
}