diff src/paint.c @ 19:cf6d65398619

More animation demo
author Thinker K.F. Li <thinker@branda.to>
date Sat, 02 Aug 2008 15:38:54 +0800
parents 0f3baa488a62
children 83d24300a992
line wrap: on
line diff
--- a/src/paint.c	Sat Aug 02 14:45:42 2008 +0800
+++ b/src/paint.c	Sat Aug 02 15:38:54 2008 +0800
@@ -34,9 +34,7 @@
     color->r = r;
     color->g = g;
     color->b = b;
-    color->paint.prepare = paint_color_prepare;
-    color->paint.free = paint_color_free;
-    STAILQ_INIT(color->paint.members);
+    paint_init(&color->paint, paint_color_prepare, paint_color_free);
     return (paint_t *)color;
 }