Mercurial > MadButterfly
comparison src/X_main.c @ 9:6eecdd331fe7
Fix bug in testcase
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sat, 26 Jul 2008 04:27:52 +0800 |
parents | 94b4b5bd8810 |
children | 7cfecdce94cc |
comparison
equal
deleted
inserted
replaced
8:94b4b5bd8810 | 9:6eecdd331fe7 |
---|---|
9 | 9 |
10 void draw_path(cairo_t *cr, int w, int h) { | 10 void draw_path(cairo_t *cr, int w, int h) { |
11 shape_t *path; | 11 shape_t *path; |
12 coord_t coord; | 12 coord_t coord; |
13 | 13 |
14 path = sh_path_new("m80 80 c 20 5 -30 20 10 30 l -30 0 z"); | 14 path = sh_path_new("m80 80 c 20 5 -30 20 10 30 t -30 0 z"); |
15 memset(coord.aggr_matrix, 0, sizeof(co_aix) * 6); | 15 memset(coord.aggr_matrix, 0, sizeof(co_aix) * 6); |
16 coord.aggr_matrix[0] = 1; | 16 coord.aggr_matrix[0] = 1; |
17 coord.aggr_matrix[1] = 0.5; | 17 coord.aggr_matrix[1] = 0.5; |
18 coord.aggr_matrix[2] = -30; | 18 coord.aggr_matrix[2] = -30; |
19 coord.aggr_matrix[4] = 1; | 19 coord.aggr_matrix[4] = 1; |