Mercurial > MadButterfly
diff examples/menu/main.c @ 299:5bf503270419
Fix the Fade out issue in scroll up.
author | wycc |
---|---|
date | Wed, 04 Feb 2009 09:12:02 +0800 |
parents | 959c4ac544a1 |
children | 8b45e7b374b8 |
line wrap: on
line diff
--- a/examples/menu/main.c Wed Feb 04 01:28:01 2009 +0800 +++ b/examples/menu/main.c Wed Feb 04 09:12:02 2009 +0800 @@ -124,7 +124,6 @@ snprintf(name, sizeof(name),"item%d", items[7]); textgroup = (coord_t *) MB_SPRITE_GET_OBJ(sprite,name); mb_shift_new(0,100, textgroup,word); - mb_visibility_new(VIS_HIDDEN, textgroup,word); // fade in the item[8] snprintf(name, sizeof(name),"item%d", items[8]); @@ -141,9 +140,9 @@ MB_TIMEVAL_SET(&start, 0, SPEED); MB_TIMEVAL_SET(&playing, 0, 0); word = mb_progm_next_word(progm, &start, &playing); - snprintf(name, sizeof(name),"item%d", items[8]); + snprintf(name, sizeof(name),"item%d", items[7]); textgroup = (coord_t *) MB_SPRITE_GET_OBJ(sprite,name); - mb_visibility_new(VIS_VISIBLE, textgroup,word); + mb_visibility_new(VIS_HIDDEN, textgroup,word); mb_progm_free_completed(progm); mb_progm_start(progm, X_MB_tman(MBAPP_RDMAN(myApp)->rt), &now);