comparison src/paint.c @ 58:1ca417f741f1

-
author Thinker K.F. Li <thinker@branda.to>
date Sun, 10 Aug 2008 21:32:42 +0800
parents e444a8c01735
children e96a584487af
comparison
equal deleted inserted replaced
57:ab028c9f0930 58:1ca417f741f1
133 linear->ptn = NULL; 133 linear->ptn = NULL;
134 134
135 return (paint_t *)linear; 135 return (paint_t *)linear;
136 } 136 }
137 137
138 /*! \brief Setup color stop for a linear radient paint.
139 *
140 * stops should be managed by users of the function. It should be
141 * available before the paint being freed or changed to another
142 * array of stops.
143 */
138 grad_stop_t *paint_linear_stops(paint_t *paint, 144 grad_stop_t *paint_linear_stops(paint_t *paint,
139 int n_stops, 145 int n_stops,
140 grad_stop_t *stops) { 146 grad_stop_t *stops) {
141 paint_linear_t *linear = (paint_linear_t *)paint; 147 paint_linear_t *linear = (paint_linear_t *)paint;
142 grad_stop_t *old_stops; 148 grad_stop_t *old_stops;
214 radial->ptn = NULL; 220 radial->ptn = NULL;
215 221
216 return (paint_t *)radial; 222 return (paint_t *)radial;
217 } 223 }
218 224
225 /*! \brief Setup color stop for a radial radient paint.
226 *
227 * stops should be managed by users of the function. It should be
228 * available before the paint being freed or changed to another
229 * array of stops.
230 */
219 grad_stop_t *paint_radial_stops(paint_t *paint, 231 grad_stop_t *paint_radial_stops(paint_t *paint,
220 int n_stops, 232 int n_stops,
221 grad_stop_t *stops) { 233 grad_stop_t *stops) {
222 paint_radial_t *radial = (paint_radial_t *)paint; 234 paint_radial_t *radial = (paint_radial_t *)paint;
223 grad_stop_t *old_stops; 235 grad_stop_t *old_stops;