Mercurial > MadButterfly
comparison src/shape_path.c @ 6:772511b8b9be
Cairo specify RGB values in range 0.0 ~ 1.0.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sat, 26 Jul 2008 02:41:00 +0800 |
parents | 9c331ec9e210 |
children | 569f3168ba53 |
comparison
equal
deleted
inserted
replaced
5:9c331ec9e210 | 6:772511b8b9be |
---|---|
184 args = (co_aix *)(cmds + path->cmd_len); | 184 args = (co_aix *)(cmds + path->cmd_len); |
185 p = data; | 185 p = data; |
186 while(*p) { | 186 while(*p) { |
187 SKIP_SPACE(p); | 187 SKIP_SPACE(p); |
188 | 188 |
189 /* TODO: transform all relative to absolute, */ | |
189 *cmds++ = *p; | 190 *cmds++ = *p; |
190 switch(*p++) { | 191 switch(*p++) { |
191 case 'c': | 192 case 'c': |
192 case 'C': | 193 case 'C': |
193 while(*p) { | 194 while(*p) { |
484 break; | 485 break; |
485 case '\x0': | 486 case '\x0': |
486 break; | 487 break; |
487 } | 488 } |
488 } | 489 } |
490 | |
491 cairo_fill(cr); | |
489 } | 492 } |
490 | 493 |
491 #ifdef UNITTEST | 494 #ifdef UNITTEST |
492 | 495 |
493 #include <CUnit/Basic.h> | 496 #include <CUnit/Basic.h> |