comparison src/mbaf/animated_menu.c @ 1023:dffecd62817c refine_backend_if

Use mb_timer_man_t instead of mb_tman_t in mbaf
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 22 Nov 2010 15:27:40 +0800
parents 152bc503dc99
children 1993e5ae60aa
comparison
equal deleted inserted replaced
1022:84006acab6af 1023:dffecd62817c
106 mb_visibility_new(VIS_HIDDEN, textgroup,word); 106 mb_visibility_new(VIS_HIDDEN, textgroup,word);
107 107
108 mb_progm_free_completed(progm); 108 mb_progm_free_completed(progm);
109 m->ready--; 109 m->ready--;
110 subject_add_observer(mb_progm_get_complete(progm), mb_animated_menu_complete,m); 110 subject_add_observer(mb_progm_get_complete(progm), mb_animated_menu_complete,m);
111 mb_progm_start(progm, X_MB_tman(MBAF_RDMAN(m->app)->rt), &now); 111 mb_progm_start(progm, mb_runtime_timer_man(MBAF_RDMAN(m->app)->rt), &now);
112 rdman_redraw_changed(MBAF_RDMAN(m->app)); 112 rdman_redraw_changed(MBAF_RDMAN(m->app));
113 tmp = m->items[8]; 113 tmp = m->items[8];
114 for(i=8;i>0;i--) { 114 for(i=8;i>0;i--) {
115 m->items[i] = m->items[i-1]; 115 m->items[i] = m->items[i-1];
116 } 116 }
156 mb_visibility_new(VIS_VISIBLE, (coord_t *) m->objects[m->items[0]],word); 156 mb_visibility_new(VIS_VISIBLE, (coord_t *) m->objects[m->items[0]],word);
157 157
158 mb_progm_free_completed(progm); 158 mb_progm_free_completed(progm);
159 m->ready--; 159 m->ready--;
160 subject_add_observer(mb_progm_get_complete(progm), mb_animated_menu_complete,m); 160 subject_add_observer(mb_progm_get_complete(progm), mb_animated_menu_complete,m);
161 mb_progm_start(progm, X_MB_tman(MBAF_RDMAN(m->app)->rt), &now); 161 mb_progm_start(progm, mb_runtime_timer_man(MBAF_RDMAN(m->app)->rt), &now);
162 rdman_redraw_changed(MBAF_RDMAN(m->app)); 162 rdman_redraw_changed(MBAF_RDMAN(m->app));
163 tmp = m->items[0]; 163 tmp = m->items[0];
164 for(i=0;i<8;i++) { 164 for(i=0;i<8;i++) {
165 m->items[i] = m->items[i+1]; 165 m->items[i] = m->items[i+1];
166 } 166 }
183 lightbar = (coord_t *) m->lightbar; 183 lightbar = (coord_t *) m->lightbar;
184 mb_shift_new(0,m->menus_y[m->cur]-coord_y(lightbar),lightbar,word); 184 mb_shift_new(0,m->menus_y[m->cur]-coord_y(lightbar),lightbar,word);
185 mb_progm_free_completed(progm); 185 mb_progm_free_completed(progm);
186 m->ready--; 186 m->ready--;
187 subject_add_observer(mb_progm_get_complete(progm), mb_animated_menu_complete,m); 187 subject_add_observer(mb_progm_get_complete(progm), mb_animated_menu_complete,m);
188 mb_progm_start(progm, X_MB_tman(MBAF_RDMAN(m->app)->rt), &now); 188 mb_progm_start(progm, mb_runtime_timer_man(MBAF_RDMAN(m->app)->rt), &now);
189 rdman_redraw_changed(MBAF_RDMAN(m->app)); 189 rdman_redraw_changed(MBAF_RDMAN(m->app));
190 } 190 }
191 191
192 static void mb_animated_menu_up(mb_animated_menu_t *m) 192 static void mb_animated_menu_up(mb_animated_menu_t *m)
193 { 193 {