comparison src/X_main.c @ 13:ed55009d96d3

refactory for redrawing
author Thinker K.F. Li <thinker@branda.to>
date Thu, 31 Jul 2008 08:10:00 +0800
parents 79e9edf4c00a
children c2ce186a5c37
comparison
equal deleted inserted replaced
12:79e9edf4c00a 13:ed55009d96d3
24 coord->aggr_matrix[4] = 0.8; 24 coord->aggr_matrix[4] = 0.8;
25 coord->aggr_matrix[5] = 20; 25 coord->aggr_matrix[5] = 20;
26 rdman_add_shape(&rdman, (shape_t *)path, coord); 26 rdman_add_shape(&rdman, (shape_t *)path, coord);
27 sh_path_transform(path); 27 sh_path_transform(path);
28 sh_path_draw(path, cr); 28 sh_path_draw(path, cr);
29 sh_path_free(path);
29 } 30 }
30 31
31 void drawing(cairo_surface_t *surface, int w, int h) { 32 void drawing(cairo_surface_t *surface, int w, int h) {
32 cairo_t *cr; 33 cairo_t *cr;
33 34