comparison src/X_main.c @ 8:94b4b5bd8810

-
author Thinker K.F. Li <thinker@branda.to>
date Sat, 26 Jul 2008 03:20:49 +0800
parents 569f3168ba53
children 6eecdd331fe7
comparison
equal deleted inserted replaced
7:569f3168ba53 8:94b4b5bd8810
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 l -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;