Mercurial > MadButterfly
diff src/X_main.c @ 15:c2ce186a5c37
X_main uses rdman_redraw_all()
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 01 Aug 2008 01:40:07 +0800 |
parents | ed55009d96d3 |
children | e17e12b112c4 |
line wrap: on
line diff
--- a/src/X_main.c Thu Jul 31 17:43:20 2008 +0800 +++ b/src/X_main.c Fri Aug 01 01:40:07 2008 +0800 @@ -14,7 +14,7 @@ shape_t *path; coord_t *coord; - redraw_man_init(&rdman); + redraw_man_init(&rdman, cr); coord = rdman.root_coord; path = sh_path_new("M 22,89.36218 C -34,-0.63782 39,-9.637817 82,12.36218 C 125,34.36218 142,136.36218 142,136.36218 C 100.66667,125.36218 74.26756,123.42795 22,89.36218 z "); @@ -23,9 +23,12 @@ coord->aggr_matrix[2] = 20; coord->aggr_matrix[4] = 0.8; coord->aggr_matrix[5] = 20; + rdman_coord_changed(&rdman, coord); rdman_add_shape(&rdman, (shape_t *)path, coord); - sh_path_transform(path); - sh_path_draw(path, cr); + + rdman_redraw_all(&rdman); + + redraw_man_destroy(&rdman); sh_path_free(path); }