Mercurial > MadButterfly
comparison src/shape_path.c @ 15:c2ce186a5c37
X_main uses rdman_redraw_all()
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 01 Aug 2008 01:40:07 +0800 |
parents | 79e9edf4c00a |
children | 41f0907b27ac |
comparison
equal
deleted
inserted
replaced
14:d34232f15863 | 15:c2ce186a5c37 |
---|---|
429 | 429 |
430 path = (sh_path_t *)shape; | 430 path = (sh_path_t *)shape; |
431 cmd_len = path->cmd_len; | 431 cmd_len = path->cmd_len; |
432 cmds = path->dev_data; | 432 cmds = path->dev_data; |
433 args = (co_aix *)(cmds + cmd_len); | 433 args = (co_aix *)(cmds + cmd_len); |
434 x = y = 0; | 434 x = y = x1 = y1 = x2 = y2 = 0; |
435 for(i = 0; i < cmd_len; i++) { | 435 for(i = 0; i < cmd_len; i++) { |
436 cmd = *cmds++; | 436 cmd = *cmds++; |
437 switch(cmd) { | 437 switch(cmd) { |
438 case 'm': | 438 case 'm': |
439 x = x + *args++; | 439 x = x + *args++; |