Mercurial > MadButterfly
comparison src/shape_path.c @ 33:d82749f77108
Fix bug of demo and remove *_fill() and *_stroke().
- logical error in X_main.c.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 06 Aug 2008 00:40:04 +0800 |
parents | e06a4a667ce2 |
children | 07c523c799f4 |
comparison
equal
deleted
inserted
replaced
32:69c8e264890d | 33:d82749f77108 |
---|---|
546 | 546 |
547 void sh_path_draw(shape_t *shape, cairo_t *cr) { | 547 void sh_path_draw(shape_t *shape, cairo_t *cr) { |
548 sh_path_path(shape, cr); | 548 sh_path_path(shape, cr); |
549 } | 549 } |
550 | 550 |
551 void sh_path_fill(shape_t *shape, cairo_t *cr) { | |
552 sh_path_path(shape, cr); | |
553 cairo_fill(cr); | |
554 } | |
555 | |
556 void sh_path_stroke(shape_t *shape, cairo_t *cr) { | |
557 sh_path_path(shape, cr); | |
558 cairo_stroke(cr); | |
559 } | |
560 | |
561 #ifdef UNITTEST | 551 #ifdef UNITTEST |
562 | 552 |
563 #include <CUnit/Basic.h> | 553 #include <CUnit/Basic.h> |
564 | 554 |
565 void test_sh_path_new(void) { | 555 void test_sh_path_new(void) { |