# HG changeset patch # User Thinker K.F. Li # Date 1282268089 -28800 # Node ID d0ee92a96c4766af74be8ea2f565a1585e175fdb # Parent 5ac257be7bc0cb03e48ebcf98130f45c12df3f4d Fix typo and add initialize code for linear and radial diff -r 5ac257be7bc0 -r d0ee92a96c47 nodejs/mbfly_njs.m4 --- a/nodejs/mbfly_njs.m4 Fri Aug 20 09:34:49 2010 +0800 +++ b/nodejs/mbfly_njs.m4 Fri Aug 20 09:34:49 2010 +0800 @@ -38,7 +38,7 @@ (([MOD], [xnjsmb_mb_rt_objs_mod]))), METHOD([paint_radial_new], [xnjsmb_paint_radial_new], (NUMBER(cx), NUMBER(cy), NUMBER(r), ERR), 3, - [OBJ([paint_linear], [paint_t])], + [OBJ([paint_radial], [paint_t])], (([MOD], [xnjsmb_mb_rt_objs_mod])))], ((CTOR, ([_X_njs_MB_new], (SELF, STR(display_name), INT(width), INT(height)), 3)))dnl ) diff -r 5ac257be7bc0 -r d0ee92a96c47 nodejs/paints.cc --- 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; }