comparison nodejs/paints.cc @ 576:5a68e2bcea17

Set font styles for stext in Javascript
author Thinker K.F. Li <thinker@branda.to>
date Fri, 11 Jun 2010 01:21:10 +0800
parents 49e79253b6d3
children cc39cf3f623c
comparison
equal deleted inserted replaced
575:97159102f886 576:5a68e2bcea17
40 rt = rt_val->ToObject(); 40 rt = rt_val->ToObject();
41 rdman = xnjsmb_rt_rdman(rt); 41 rdman = xnjsmb_rt_rdman(rt);
42 42
43 rdman_paint_fill(rdman, paint, sh); 43 rdman_paint_fill(rdman, paint, sh);
44 44
45 rdman_shape_changed(rdman, sh); 45 if(sh_get_coord(sh))
46 rdman_shape_changed(rdman, sh);
46 47
47 return Null(); 48 return Null();
48 } 49 }
49 50
50 /*! \brief Stroke a shape with the paint. 51 /*! \brief Stroke a shape with the paint.
75 rt = rt_val->ToObject(); 76 rt = rt_val->ToObject();
76 rdman = xnjsmb_rt_rdman(rt); 77 rdman = xnjsmb_rt_rdman(rt);
77 78
78 rdman_paint_stroke(rdman, paint, sh); 79 rdman_paint_stroke(rdman, paint, sh);
79 80
80 rdman_shape_changed(rdman, sh); 81 if(sh_get_coord(sh))
82 rdman_shape_changed(rdman, sh);
81 83
82 return Null(); 84 return Null();
83 } 85 }
84 86
85 /*! \brief Constructor of color paint_color_t object for Javascript. 87 /*! \brief Constructor of color paint_color_t object for Javascript.