diff --git a/apps/filetypes.c b/apps/filetypes.c index f91df19652..cb05a60ad6 100644 --- a/apps/filetypes.c +++ b/apps/filetypes.c @@ -75,12 +75,33 @@ static char *filetypes_strdup(char* string) static void read_builtin_types(void); static void read_config(char* config_file); #ifdef HAVE_LCD_BITMAP + +static void reset_icons(void) +{ + int i, j, count; + const struct filetype *types; + tree_get_filetypes(&types, &count); + for (i=1; iattr); if (index < 0) return NULL; + if (filetypes[index].viewer == NULL) + return NULL; snprintf(plugin_name, MAX_PATH, "%s/%s.%s", filetypes[index].viewer? VIEWERS_DIR: PLUGIN_DIR, filetypes[index].plugin, ROCK_EXTENSION); diff --git a/apps/gui/icon.c b/apps/gui/icon.c index 2cb0035ad7..b283ec2c80 100644 --- a/apps/gui/icon.c +++ b/apps/gui/icon.c @@ -42,7 +42,7 @@ #define DEFAULT_VIEWER_BMP ICON_DIR "/viewers.bmp" #define DEFAULT_REMOTE_VIEWER_BMP ICON_DIR "/remote_viewers.bmp" -/* These should robably be moved to config-.h */ +/* These should probably be moved to config-.h */ #define MAX_ICON_HEIGHT 24 #define MAX_ICON_WIDTH 24 @@ -213,9 +213,9 @@ static void load_icons(const char* filename, enum Iconset iconset) break; #ifdef HAVE_REMOTE_LCD case Iconset_Remotescreen: - loaded_ok = &custom_icons_loaded[SCREEN_MAIN]; - bmp = &user_iconset[SCREEN_MAIN]; - bmp->data = icon_buffer[SCREEN_MAIN]; + loaded_ok = &custom_icons_loaded[SCREEN_REMOTE]; + bmp = &user_iconset[SCREEN_REMOTE]; + bmp->data = icon_buffer[SCREEN_REMOTE]; break; case Iconset_Remotescreen_viewers: loaded_ok = &viewer_icons_loaded[SCREEN_REMOTE]; diff --git a/apps/plugins/viewers.config b/apps/plugins/viewers.config index d53fb2371e..4abdfb106f 100644 --- a/apps/plugins/viewers.config +++ b/apps/plugins/viewers.config @@ -19,7 +19,7 @@ rsp,viewers/searchengine,8 ss,rocks/sudoku,1 wav,viewers/wav2wv,- wav,viewers/mp3_encoder,- -wav,viewers/wavplay,*0 +wav,viewers/wavplay,10 wav,viewers/wavview,10 bmp,rocks/rockpaint,11 mpg,viewers/mpegplayer,4