Mercurial > MadButterfly
diff 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 |
line wrap: on
line diff
--- a/nodejs/paints.cc Fri Aug 20 09:34:49 2010 +0800 +++ b/nodejs/paints.cc Fri Aug 20 09:34:49 2010 +0800 @@ -125,7 +125,7 @@ stop_o->Get(4)->ToNumber()->Value()); /* a */ } - old_grad_stops = paint_linear_stops(paint, nstops, grad_stops); + old_grad_stops = paint_radial_stops(paint, nstops, grad_stops); if(old_grad_stops) free(old_grad_stops); /* The stops, here, were allocated for * previous calling of this @@ -264,6 +264,8 @@ xnjsmb_auto_paint_init(); xnjsmb_auto_paint_color_init(); xnjsmb_auto_paint_image_init(); + xnjsmb_auto_paint_linear_init(); + xnjsmb_auto_paint_radial_init(); init_flag = 1; }