changeset 304:c8f31eef947b

Fix the initial drawn position issue. We will draw the lightbar in the right posityion.
author wycc
date Sun, 15 Feb 2009 08:50:36 +0800
parents f894b30676e9
children 0231b05552fe
files examples/menu/main.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/examples/menu/main.c	Sun Feb 15 08:34:57 2009 +0800
+++ b/examples/menu/main.c	Sun Feb 15 08:50:36 2009 +0800
@@ -102,7 +102,7 @@
     rdman_coord_changed(MBAPP_RDMAN(m->app),textgroup);
 
     lightbar = (coord_t *) m->lightbar;
-    group = (coord_t *) m->objects[m->cur+1];
+    group = (coord_t *) m->objects[m->cur];
     coord_x(lightbar) = coord_x(group);
     coord_y(lightbar) = coord_y(group);
     rdman_redraw_changed(MBAPP_RDMAN(m->app));