Mercurial > MadButterfly
comparison nodejs/paints.cc @ 735:d0ee92a96c47
Fix typo and add initialize code for linear and radial
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 20 Aug 2010 09:34:49 +0800 |
parents | 163f0d9e6382 |
children | a49358b040b5 |
comparison
equal
deleted
inserted
replaced
734:5ac257be7bc0 | 735:d0ee92a96c47 |
---|---|
123 stop_o->Get(2)->ToNumber()->Value(), /* g */ | 123 stop_o->Get(2)->ToNumber()->Value(), /* g */ |
124 stop_o->Get(3)->ToNumber()->Value(), /* b */ | 124 stop_o->Get(3)->ToNumber()->Value(), /* b */ |
125 stop_o->Get(4)->ToNumber()->Value()); /* a */ | 125 stop_o->Get(4)->ToNumber()->Value()); /* a */ |
126 } | 126 } |
127 | 127 |
128 old_grad_stops = paint_linear_stops(paint, nstops, grad_stops); | 128 old_grad_stops = paint_radial_stops(paint, nstops, grad_stops); |
129 if(old_grad_stops) | 129 if(old_grad_stops) |
130 free(old_grad_stops); /* The stops, here, were allocated for | 130 free(old_grad_stops); /* The stops, here, were allocated for |
131 * previous calling of this | 131 * previous calling of this |
132 * function. */ | 132 * function. */ |
133 } | 133 } |
262 | 262 |
263 if(!init_flag) { | 263 if(!init_flag) { |
264 xnjsmb_auto_paint_init(); | 264 xnjsmb_auto_paint_init(); |
265 xnjsmb_auto_paint_color_init(); | 265 xnjsmb_auto_paint_color_init(); |
266 xnjsmb_auto_paint_image_init(); | 266 xnjsmb_auto_paint_image_init(); |
267 xnjsmb_auto_paint_linear_init(); | |
268 xnjsmb_auto_paint_radial_init(); | |
267 | 269 |
268 init_flag = 1; | 270 init_flag = 1; |
269 } | 271 } |
270 } | 272 } |
271 | 273 |