# HG changeset patch # User Thinker K.F. Li # Date 1236343165 -28800 # Node ID 740844ee48c49011d3ff5b6ce5681d6f8a6ab1a2 # Parent f61dbcd8c291a313650988c768241cb70604eb1b Update position of light-bar after update menu item diff -r f61dbcd8c291 -r 740844ee48c4 examples/menu/animated_menu.c --- a/examples/menu/animated_menu.c Fri Mar 06 19:42:01 2009 +0800 +++ b/examples/menu/animated_menu.c Fri Mar 06 20:39:25 2009 +0800 @@ -343,6 +343,7 @@ m->cur = 0; m->titles = menus; mb_animated_menu_fillMenuContent(m); + mb_animated_menu_moveLightBar(m); } diff -r f61dbcd8c291 -r 740844ee48c4 examples/menu/filebrowser.c --- a/examples/menu/filebrowser.c Fri Mar 06 19:42:01 2009 +0800 +++ b/examples/menu/filebrowser.c Fri Mar 06 20:39:25 2009 +0800 @@ -93,15 +93,16 @@ struct fileinfo *f; int i; - if (data->curDir) - free(data->curDir); - data->curDir = strdup(curdir); dir = opendir(curdir); if (dir == NULL) { printf("We can not open the direftory %s\n", curdir); return; } + if (data->curDir) + free(data->curDir); + data->curDir = strdup(curdir); + if (data->files) { for(i=0;inFiles;i++) { fileinfo_free(data->files[i]);