comparison examples/menu/main.c @ 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 8b45e7b374b8
children 0231b05552fe
comparison
equal deleted inserted replaced
303:f894b30676e9 304:c8f31eef947b
100 textgroup = (coord_t *) m->objects[m->items[i]]; 100 textgroup = (coord_t *) m->objects[m->items[i]];
101 coord_hide(textgroup); 101 coord_hide(textgroup);
102 rdman_coord_changed(MBAPP_RDMAN(m->app),textgroup); 102 rdman_coord_changed(MBAPP_RDMAN(m->app),textgroup);
103 103
104 lightbar = (coord_t *) m->lightbar; 104 lightbar = (coord_t *) m->lightbar;
105 group = (coord_t *) m->objects[m->cur+1]; 105 group = (coord_t *) m->objects[m->cur];
106 coord_x(lightbar) = coord_x(group); 106 coord_x(lightbar) = coord_x(group);
107 coord_y(lightbar) = coord_y(group); 107 coord_y(lightbar) = coord_y(group);
108 rdman_redraw_changed(MBAPP_RDMAN(m->app)); 108 rdman_redraw_changed(MBAPP_RDMAN(m->app));
109 } 109 }
110 110