Minor path fix
authorskeezix <skeezix@flotsam-vm.(none)>
Wed, 24 Mar 2010 13:15:30 +0000 (09:15 -0400)
committerskeezix <skeezix@flotsam-vm.(none)>
Wed, 24 Mar 2010 13:15:30 +0000 (09:15 -0400)
minimenu/TODO.txt
minimenu/mmui.c

index 7bd6174..09a26ed 100644 (file)
@@ -5,11 +5,17 @@
 
 - libpnd: appdata-dir-name?
 
+- skinning .. mmenu.conf and then skin.conf in each skin dir?
+- preview pic override for davec :)
+- some ultra primtive frame draw, so the 'detail menu' and any 'sub menus' can draw
+  their own frame rather than depand on skin frame to exist
 - About screen and shoutouts // konami code?
-
 - deploy..
   - .desktop for deployment, for running from xfce
 
+- maybe:
+  - directory browser; easy hack
+
 - future
   - honor render_mask to know what to update
   - handle SD eject/insert? or leave on manual
index 1e23d30..2d2ac5f 100644 (file)
@@ -216,7 +216,11 @@ unsigned char ui_imagecache ( char *basepath ) {
       return ( 0 );
     }
 
-    sprintf ( fullpath, "%s/%s", basepath, filename );
+    if ( filename [ 0 ] == '/' ) {
+      strncpy ( fullpath, filename, PATH_MAX );
+    } else {
+      sprintf ( fullpath, "%s/%s", basepath, filename );
+    }
 
     if ( ! ( g_imagecache [ i ].i = IMG_Load ( fullpath ) ) ) {
       pnd_log ( pndn_error, "ERROR: Couldn't load static cache image: %s\n", fullpath );