Mercurial > MadButterfly
diff src/paint.c @ 56:e444a8c01735
Change interface of paint_radial_new()
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 10 Aug 2008 18:27:52 +0800 |
parents | 01ed2bc37eed |
children | 1ca417f741f1 |
line wrap: on
line diff
--- a/src/paint.c Sun Aug 10 16:44:21 2008 +0800 +++ b/src/paint.c Sun Aug 10 18:27:52 2008 +0800 @@ -197,8 +197,7 @@ } paint_t *paint_radial_new(redraw_man_t *rdman, - co_aix cx, co_aix cy, co_aix r, - int n_stops, grad_stop_t *stops) { + co_aix cx, co_aix cy, co_aix r) { paint_radial_t *radial; radial = O_ALLOC(paint_radial_t); @@ -209,8 +208,8 @@ radial->cx = cx; radial->cy = cy; radial->r = r; - radial->n_stops = n_stops; - radial->stops = stops; + radial->n_stops = 0; + radial->stops = NULL; radial->flags = RDF_DIRTY; radial->ptn = NULL;