diff options
Diffstat (limited to 'apps/filetypes.c')
-rw-r--r-- | apps/filetypes.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c index 9abcfec884..39fb2c5b32 100644 --- a/apps/filetypes.c +++ b/apps/filetypes.c | |||
@@ -43,11 +43,7 @@ | |||
43 | /* max filetypes (plugins & icons stored here) */ | 43 | /* max filetypes (plugins & icons stored here) */ |
44 | #define MAX_FILETYPES 192 | 44 | #define MAX_FILETYPES 192 |
45 | /* max viewer plugins */ | 45 | /* max viewer plugins */ |
46 | #ifdef HAVE_LCD_BITMAP | ||
47 | #define MAX_VIEWERS 56 | 46 | #define MAX_VIEWERS 56 |
48 | #else | ||
49 | #define MAX_VIEWERS 24 | ||
50 | #endif | ||
51 | 47 | ||
52 | /* a table for the known file types */ | 48 | /* a table for the known file types */ |
53 | static const struct filetype inbuilt_filetypes[] = { | 49 | static const struct filetype inbuilt_filetypes[] = { |
@@ -129,15 +125,11 @@ static const struct filetype inbuilt_filetypes[] = { | |||
129 | { "lng", FILE_ATTR_LNG, Icon_Language, LANG_LANGUAGE }, | 125 | { "lng", FILE_ATTR_LNG, Icon_Language, LANG_LANGUAGE }, |
130 | { "rock",FILE_ATTR_ROCK,Icon_Plugin, VOICE_EXT_ROCK }, | 126 | { "rock",FILE_ATTR_ROCK,Icon_Plugin, VOICE_EXT_ROCK }, |
131 | { "lua", FILE_ATTR_LUA, Icon_Plugin, VOICE_EXT_ROCK }, | 127 | { "lua", FILE_ATTR_LUA, Icon_Plugin, VOICE_EXT_ROCK }, |
132 | #ifdef HAVE_LCD_BITMAP | ||
133 | { "fnt", FILE_ATTR_FONT,Icon_Font, VOICE_EXT_FONT }, | 128 | { "fnt", FILE_ATTR_FONT,Icon_Font, VOICE_EXT_FONT }, |
134 | { "kbd", FILE_ATTR_KBD, Icon_Keyboard, VOICE_EXT_KBD }, | 129 | { "kbd", FILE_ATTR_KBD, Icon_Keyboard, VOICE_EXT_KBD }, |
135 | #endif | ||
136 | { "bmark",FILE_ATTR_BMARK, Icon_Bookmark, VOICE_EXT_BMARK }, | 130 | { "bmark",FILE_ATTR_BMARK, Icon_Bookmark, VOICE_EXT_BMARK }, |
137 | { "cue", FILE_ATTR_CUE, Icon_Bookmark, VOICE_EXT_CUESHEET }, | 131 | { "cue", FILE_ATTR_CUE, Icon_Bookmark, VOICE_EXT_CUESHEET }, |
138 | #ifdef HAVE_LCD_BITMAP | ||
139 | { "sbs", FILE_ATTR_SBS, Icon_Wps, VOICE_EXT_SBS }, | 132 | { "sbs", FILE_ATTR_SBS, Icon_Wps, VOICE_EXT_SBS }, |
140 | #endif | ||
141 | #ifdef HAVE_REMOTE_LCD | 133 | #ifdef HAVE_REMOTE_LCD |
142 | { "rsbs", FILE_ATTR_RSBS, Icon_Wps, VOICE_EXT_RSBS }, | 134 | { "rsbs", FILE_ATTR_RSBS, Icon_Wps, VOICE_EXT_RSBS }, |
143 | #if CONFIG_TUNER | 135 | #if CONFIG_TUNER |
@@ -289,7 +281,6 @@ void read_color_theme_file(void) { | |||
289 | close(fd); | 281 | close(fd); |
290 | } | 282 | } |
291 | #endif | 283 | #endif |
292 | #ifdef HAVE_LCD_BITMAP | ||
293 | void read_viewer_theme_file(void) | 284 | void read_viewer_theme_file(void) |
294 | { | 285 | { |
295 | char buffer[MAX_PATH]; | 286 | char buffer[MAX_PATH]; |
@@ -340,7 +331,6 @@ void read_viewer_theme_file(void) | |||
340 | close(fd); | 331 | close(fd); |
341 | custom_icons_loaded = true; | 332 | custom_icons_loaded = true; |
342 | } | 333 | } |
343 | #endif | ||
344 | 334 | ||
345 | void filetype_init(void) | 335 | void filetype_init(void) |
346 | { | 336 | { |
@@ -368,9 +358,7 @@ void filetype_init(void) | |||
368 | read_builtin_types(); | 358 | read_builtin_types(); |
369 | read_config(fd); | 359 | read_config(fd); |
370 | close(fd); | 360 | close(fd); |
371 | #ifdef HAVE_LCD_BITMAP | ||
372 | read_viewer_theme_file(); | 361 | read_viewer_theme_file(); |
373 | #endif | ||
374 | #ifdef HAVE_LCD_COLOR | 362 | #ifdef HAVE_LCD_COLOR |
375 | read_color_theme_file(); | 363 | read_color_theme_file(); |
376 | #endif | 364 | #endif |