Mercurial > MadButterfly
diff src/X_main.c @ 26:d50f33040de6
Set line width for path.
- consider width of line when compute bounding box area.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 03 Aug 2008 13:04:55 +0800 |
parents | e598bc809c0f |
children | 19c603dd6ff9 |
line wrap: on
line diff
--- a/src/X_main.c Sun Aug 03 02:19:32 2008 +0800 +++ b/src/X_main.c Sun Aug 03 13:04:55 2008 +0800 @@ -70,6 +70,8 @@ for(i = 0; i < 50; i++) { usleep(20000); + path1->stroke_width = i / 10; + path2->stroke_width = i / 10; coord1->matrix[2] += 1; coord1->matrix[5] += 1; coord2->matrix[2] -= 1; @@ -94,6 +96,25 @@ XFlush(display); } + for(i = 0; i < 4; i++) { + usleep(500000); + path1->stroke_width -= 1; + path2->stroke_width -= 1; + rdman_shape_changed(&rdman, path1); + rdman_shape_changed(&rdman, path2); + rdman_redraw_changed(&rdman); + XFlush(display); + } + for(i = 0; i < 4; i++) { + usleep(500000); + path1->stroke_width += 1; + path2->stroke_width += 1; + rdman_shape_changed(&rdman, path1); + rdman_shape_changed(&rdman, path2); + rdman_redraw_changed(&rdman); + XFlush(display); + } + fill1->free(fill1); fill2->free(fill2); redraw_man_destroy(&rdman);