comparison src/X_main.c @ 52:59a295651480

Add action mb_chgcolor_t to change color of paints.
author Thinker K.F. Li <thinker@branda.to>
date Sat, 09 Aug 2008 22:16:23 +0800
parents 6a3726fa7aad
children ffed18510d55
comparison
equal deleted inserted replaced
51:5f5bd3ac9316 52:59a295651480
311 MB_TIMEVAL_SET(&start, 1, 0); 311 MB_TIMEVAL_SET(&start, 1, 0);
312 MB_TIMEVAL_SET(&playing, 2, 0); 312 MB_TIMEVAL_SET(&playing, 2, 0);
313 word = mb_progm_next_word(progm, &start, &playing); 313 word = mb_progm_next_word(progm, &start, &playing);
314 act = mb_shift_new(0, 20, coord1, word); 314 act = mb_shift_new(0, 20, coord1, word);
315 315
316 MB_TIMEVAL_SET(&start, 3, 0);
317 MB_TIMEVAL_SET(&playing, 2, 0);
318 act = mb_shift_new(0, -20, coord2, word); 316 act = mb_shift_new(0, -20, coord2, word);
319 317
320 MB_TIMEVAL_SET(&start, 3, 0); 318 MB_TIMEVAL_SET(&start, 3, 0);
321 MB_TIMEVAL_SET(&playing, 2, 0); 319 MB_TIMEVAL_SET(&playing, 2, 0);
322 word = mb_progm_next_word(progm, &start, &playing); 320 word = mb_progm_next_word(progm, &start, &playing);
323 act = mb_shift_new(0, -20, coord1, word); 321 act = mb_shift_new(0, -20, coord1, word);
324 322
325 MB_TIMEVAL_SET(&start, 3, 0);
326 MB_TIMEVAL_SET(&playing, 2, 0);
327 act = mb_shift_new(0, 20, coord2, word); 323 act = mb_shift_new(0, 20, coord2, word);
324
325 act = mb_chgcolor_new(0, 0, 1, 0.5, fill1, word);
326 act = mb_chgcolor_new(1, 0, 0, 0.5, fill2, word);
328 327
329 gettimeofday(&tv, NULL); 328 gettimeofday(&tv, NULL);
330 MB_TIMEVAL_SET(&mbtv, tv.tv_sec, tv.tv_usec); 329 MB_TIMEVAL_SET(&mbtv, tv.tv_sec, tv.tv_usec);
331 mb_progm_start(progm, tman, &mbtv); 330 mb_progm_start(progm, tman, &mbtv);
332 331