Mercurial > MadButterfly
comparison src/shape_path.c @ 17:41f0907b27ac
Unittest for rdman_redraw_changed().
geo_init() is seperated into geo_init() and geo_from_positions().
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 01 Aug 2008 23:32:22 +0800 |
parents | c2ce186a5c37 |
children | 74d3d5dc9aaa |
comparison
equal
deleted
inserted
replaced
16:e17e12b112c4 | 17:41f0907b27ac |
---|---|
411 dev_args += 2; | 411 dev_args += 2; |
412 } | 412 } |
413 | 413 |
414 if(path->shape.geo) { | 414 if(path->shape.geo) { |
415 poses = (co_aix (*)[2])(path->dev_data + path->cmd_len); | 415 poses = (co_aix (*)[2])(path->dev_data + path->cmd_len); |
416 geo_init(path->shape.geo, arg_len / 2, poses); | 416 geo_from_positions(path->shape.geo, arg_len / 2, poses); |
417 } | 417 } |
418 } | 418 } |
419 | 419 |
420 void sh_path_draw(shape_t *shape, cairo_t *cr) { | 420 void sh_path_draw(shape_t *shape, cairo_t *cr) { |
421 sh_path_t *path; | 421 sh_path_t *path; |