Previous 15994 Revisions Next

r2970 Sunday 20th July, 2008 at 02:10:10 UTC by Nathan Woods
Fixed extra text on the file manager window
[src/mess]filemngr.c

src/mess/filemngr.c
r2969r2970
787787
788788static void file_manager_render_extra(running_machine *machine, ui_menu *menu, void *state, void *selectedref, float top, float bottom, float origx1, float origy1, float origx2, float origy2)
789789{
790//   const char *path = (selected_device != NULL) ? image_filename(selected_device) : NULL;
791//   extra_text_render(machine, menu, state, selectedref, top, bottom,
792//      origx1, origy1, origx2, origy2, NULL, path);
790   file_manager_menu_state *menustate = (file_manager_menu_state *) state;
791   const char *path;
792   
793   /* access the path */
794   path = (menustate->selected_device != NULL) ? image_filename(menustate->selected_device) : NULL;
795   extra_text_render(machine, menu, state, selectedref, top, bottom,
796      origx1, origy1, origx2, origy2, NULL, path);
793797}
794798
795799
r2969r2970
843847   menustate = (file_manager_menu_state *) state;
844848
845849   /* possible cleanups from the file selector - ugly global variable usage */
846   menustate->selected_device = NULL;
847850   if (menustate->current_directory != NULL)
848851   {
849852      astring_free(menustate->current_directory);
r2969r2970
855858      menustate->current_file = NULL;
856859   }
857860
861   /* update the selected device */
862   menustate->selected_device = (const device_config *) ui_menu_get_selection(menu);
863
858864   /* if the menu isn't built, populate now */
859865   if (!ui_menu_populated(menu))
860866      menu_file_manager_populate(machine, menu, state);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team