Mercurial > MadButterfly
changeset 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 | 5ac257be7bc0 |
children | 4f9773574234 |
files | nodejs/mbfly_njs.m4 nodejs/paints.cc |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 )
--- 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; }