colors

extract colors from pictures
git clone git://git.2f30.org/colors
Log | Files | Refs | README | LICENSE

commit 220716eacf7677852bf7485691bb43f4e332d9c3
parent fda2cf923d01ac11071f4cf0751b7b49fbad4c25
Author: sin <sin@2f30.org>
Date:   Thu,  4 Jun 2015 14:33:51 +0100

Ensure point is initialized properly before adjusting center

Diffstat:
Mcolors.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/colors.c b/colors.c @@ -54,12 +54,11 @@ void adjcluster(struct cluster *c) { struct point *p; - struct point newc; + struct point newc = { 0 }; if (!c->nmembers) return; - newc.x = newc.y = newc.z = 0; TAILQ_FOREACH(p, &c->members, e) { newc.x += p->x; newc.y += p->y;