diff 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
line wrap: on
line diff
--- a/src/X_main.c	Sat Aug 09 21:34:07 2008 +0800
+++ b/src/X_main.c	Sat Aug 09 22:16:23 2008 +0800
@@ -313,8 +313,6 @@
 	word = mb_progm_next_word(progm, &start, &playing);
 	act = mb_shift_new(0, 20, coord1, word);
 	
-	MB_TIMEVAL_SET(&start, 3, 0);
-	MB_TIMEVAL_SET(&playing, 2, 0);
 	act = mb_shift_new(0, -20, coord2, word);
 	
 	MB_TIMEVAL_SET(&start, 3, 0);
@@ -322,9 +320,10 @@
 	word = mb_progm_next_word(progm, &start, &playing);
 	act = mb_shift_new(0, -20, coord1, word);
 	
-	MB_TIMEVAL_SET(&start, 3, 0);
-	MB_TIMEVAL_SET(&playing, 2, 0);
 	act = mb_shift_new(0, 20, coord2, word);
+
+	act = mb_chgcolor_new(0, 0, 1, 0.5, fill1, word);
+	act = mb_chgcolor_new(1, 0, 0, 0.5, fill2, word);
 	
 	gettimeofday(&tv, NULL);
 	MB_TIMEVAL_SET(&mbtv, tv.tv_sec, tv.tv_usec);