Mercurial > MadButterfly
comparison src/X_main.c @ 57:ab028c9f0930
Ability to hidden shapes and action of visibility.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 10 Aug 2008 20:25:14 +0800 |
parents | e444a8c01735 |
children | 1ca417f741f1 |
comparison
equal
deleted
inserted
replaced
56:e444a8c01735 | 57:ab028c9f0930 |
---|---|
218 MB_TIMEVAL_SET(&playing, 2, 0); | 218 MB_TIMEVAL_SET(&playing, 2, 0); |
219 word = mb_progm_next_word(progm, &start, &playing); | 219 word = mb_progm_next_word(progm, &start, &playing); |
220 | 220 |
221 act = mb_shift_new(0, 20, coord1, word); | 221 act = mb_shift_new(0, 20, coord1, word); |
222 act = mb_shift_new(0, -20, coord2, word); | 222 act = mb_shift_new(0, -20, coord2, word); |
223 act = mb_visibility_new(VIS_HIDDEN, coord3, word); | |
223 | 224 |
224 MB_TIMEVAL_SET(&start, 3, 0); | 225 MB_TIMEVAL_SET(&start, 3, 0); |
225 MB_TIMEVAL_SET(&playing, 2, 0); | 226 MB_TIMEVAL_SET(&playing, 2, 0); |
226 word = mb_progm_next_word(progm, &start, &playing); | 227 word = mb_progm_next_word(progm, &start, &playing); |
227 | 228 |
228 act = mb_shift_new(0, -20, coord1, word); | 229 act = mb_shift_new(0, -20, coord1, word); |
229 act = mb_shift_new(0, 20, coord2, word); | 230 act = mb_shift_new(0, 20, coord2, word); |
230 act = mb_chgcolor_new(0, 0, 1, 0.5, fill1, word); | 231 act = mb_chgcolor_new(0, 0, 1, 0.5, fill1, word); |
231 act = mb_chgcolor_new(1, 0, 0, 0.5, fill2, word); | 232 act = mb_chgcolor_new(1, 0, 0, 0.5, fill2, word); |
233 act = mb_visibility_new(VIS_VISIBLE, coord3, word); | |
232 | 234 |
233 gettimeofday(&tv, NULL); | 235 gettimeofday(&tv, NULL); |
234 MB_TIMEVAL_SET(&mbtv, tv.tv_sec, tv.tv_usec); | 236 MB_TIMEVAL_SET(&mbtv, tv.tv_sec, tv.tv_usec); |
235 mb_progm_start(progm, tman, &mbtv); | 237 mb_progm_start(progm, tman, &mbtv); |
236 | 238 |
237 handle_connection(display, tman, &rdman, w, h); | 239 handle_connection(display, tman, &rdman, w, h); |
238 | 240 |
241 mb_progm_free(progm); | |
239 mb_tman_free(tman); | 242 mb_tman_free(tman); |
240 } | 243 } |
241 | 244 |
242 fill1->free(fill1); | 245 fill1->free(fill1); |
243 fill2->free(fill2); | 246 fill2->free(fill2); |