# HG changeset patch # User Thinker K.F. Li # Date 1281693081 -28800 # Node ID 920c9e6e42143e115165d3315375cbef278491f1 # Parent ac9c20db953e0e01baf425ff456287280213e5a4 Make code clear diff -r ac9c20db953e -r 920c9e6e4214 nodejs/svg.js --- a/nodejs/svg.js Fri Aug 13 17:42:59 2010 +0800 +++ b/nodejs/svg.js Fri Aug 13 17:51:21 2010 +0800 @@ -3,6 +3,10 @@ var mbfly = require("mbfly"); var mb_rt = new mbfly.mb_rt(":0.0", 720,480); var ldr = mbfly.img_ldr_new("."); +var background = mb_rt.rect_new(0, 0, 720, 480, 0, 0); +var paint = mb_rt.paint_color_new(1, 1, 1, 1); +paint.fill(background); +mb_rt.root.add_shape(background); function MB_loadSVG(mb_rt,root,filename) { var doc = libxml.parseXmlFile(filename); diff -r ac9c20db953e -r 920c9e6e4214 src/shape_path.c --- a/src/shape_path.c Fri Aug 13 17:42:59 2010 +0800 +++ b/src/shape_path.c Fri Aug 13 17:51:21 2010 +0800 @@ -35,7 +35,7 @@ *(x) == 'E' || \ *(x) == '-' || \ *(x) == '+' || \ - *(x) == '.')) { \ + *(x) == '.')) { \ (x)++; \ } #define OK 0