changeset 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 84006acab6af
children 63f2f1daf5d3
files src/mbaf/animated_menu.c src/mbaf/mbbutton.c
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/mbaf/animated_menu.c	Mon Nov 22 15:20:11 2010 +0800
+++ b/src/mbaf/animated_menu.c	Mon Nov 22 15:27:40 2010 +0800
@@ -108,7 +108,7 @@
     mb_progm_free_completed(progm);
     m->ready--;
     subject_add_observer(mb_progm_get_complete(progm), mb_animated_menu_complete,m);
-    mb_progm_start(progm, X_MB_tman(MBAF_RDMAN(m->app)->rt), &now);
+    mb_progm_start(progm, mb_runtime_timer_man(MBAF_RDMAN(m->app)->rt), &now);
     rdman_redraw_changed(MBAF_RDMAN(m->app));
     tmp = m->items[8];
     for(i=8;i>0;i--) {
@@ -158,7 +158,7 @@
     mb_progm_free_completed(progm);
     m->ready--;
     subject_add_observer(mb_progm_get_complete(progm), mb_animated_menu_complete,m);
-    mb_progm_start(progm, X_MB_tman(MBAF_RDMAN(m->app)->rt), &now);
+    mb_progm_start(progm, mb_runtime_timer_man(MBAF_RDMAN(m->app)->rt), &now);
     rdman_redraw_changed(MBAF_RDMAN(m->app));
     tmp = m->items[0];
     for(i=0;i<8;i++) {
@@ -185,7 +185,7 @@
     mb_progm_free_completed(progm);
     m->ready--;
     subject_add_observer(mb_progm_get_complete(progm), mb_animated_menu_complete,m);
-    mb_progm_start(progm, X_MB_tman(MBAF_RDMAN(m->app)->rt), &now);
+    mb_progm_start(progm, mb_runtime_timer_man(MBAF_RDMAN(m->app)->rt), &now);
     rdman_redraw_changed(MBAF_RDMAN(m->app));
 }
 
--- a/src/mbaf/mbbutton.c	Mon Nov 22 15:20:11 2010 +0800
+++ b/src/mbaf/mbbutton.c	Mon Nov 22 15:27:40 2010 +0800
@@ -93,7 +93,7 @@
     subject_add_observer(mb_progm_get_complete(btn->progm), mb_button_end_animated_cb,btn);
     get_now(&now);
     printf("rt = %x\n", btn->rdman->rt);
-    mb_progm_start(progm, X_MB_tman(btn->rdman->rt), &now);
+    mb_progm_start(progm, mb_runtime_timer_man(btn->rdman->rt), &now);
     if (btn->press)
     	btn->press(btn->arg);
 }