diff 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
line wrap: on
line diff
--- a/src/X_main.c	Sun Aug 10 18:27:52 2008 +0800
+++ b/src/X_main.c	Sun Aug 10 20:25:14 2008 +0800
@@ -220,6 +220,7 @@
 
 	act = mb_shift_new(0, 20, coord1, word);
 	act = mb_shift_new(0, -20, coord2, word);
+	act = mb_visibility_new(VIS_HIDDEN, coord3, word);
 	
 	MB_TIMEVAL_SET(&start, 3, 0);
 	MB_TIMEVAL_SET(&playing, 2, 0);
@@ -229,6 +230,7 @@
 	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);
+	act = mb_visibility_new(VIS_VISIBLE, coord3, word);
 	
 	gettimeofday(&tv, NULL);
 	MB_TIMEVAL_SET(&mbtv, tv.tv_sec, tv.tv_usec);
@@ -236,6 +238,7 @@
 
 	handle_connection(display, tman, &rdman, w, h);
 
+	mb_progm_free(progm);
 	mb_tman_free(tman);
     }