From 658026e6267277b27d297c481728f74d160a8481 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 17 Jul 2020 10:31:31 -0400 Subject: [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. Note: I left behind lcd_bitmap in features.txt, because removing it would require considerable work in the manual and the translations. Change-Id: Ia8ca7761f610d9332a0d22a7d189775fb15ec88a --- apps/filetypes.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'apps/filetypes.c') 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 @@ /* max filetypes (plugins & icons stored here) */ #define MAX_FILETYPES 192 /* max viewer plugins */ -#ifdef HAVE_LCD_BITMAP #define MAX_VIEWERS 56 -#else -#define MAX_VIEWERS 24 -#endif /* a table for the known file types */ static const struct filetype inbuilt_filetypes[] = { @@ -129,15 +125,11 @@ static const struct filetype inbuilt_filetypes[] = { { "lng", FILE_ATTR_LNG, Icon_Language, LANG_LANGUAGE }, { "rock",FILE_ATTR_ROCK,Icon_Plugin, VOICE_EXT_ROCK }, { "lua", FILE_ATTR_LUA, Icon_Plugin, VOICE_EXT_ROCK }, -#ifdef HAVE_LCD_BITMAP { "fnt", FILE_ATTR_FONT,Icon_Font, VOICE_EXT_FONT }, { "kbd", FILE_ATTR_KBD, Icon_Keyboard, VOICE_EXT_KBD }, -#endif { "bmark",FILE_ATTR_BMARK, Icon_Bookmark, VOICE_EXT_BMARK }, { "cue", FILE_ATTR_CUE, Icon_Bookmark, VOICE_EXT_CUESHEET }, -#ifdef HAVE_LCD_BITMAP { "sbs", FILE_ATTR_SBS, Icon_Wps, VOICE_EXT_SBS }, -#endif #ifdef HAVE_REMOTE_LCD { "rsbs", FILE_ATTR_RSBS, Icon_Wps, VOICE_EXT_RSBS }, #if CONFIG_TUNER @@ -289,7 +281,6 @@ void read_color_theme_file(void) { close(fd); } #endif -#ifdef HAVE_LCD_BITMAP void read_viewer_theme_file(void) { char buffer[MAX_PATH]; @@ -340,7 +331,6 @@ void read_viewer_theme_file(void) close(fd); custom_icons_loaded = true; } -#endif void filetype_init(void) { @@ -368,9 +358,7 @@ void filetype_init(void) read_builtin_types(); read_config(fd); close(fd); -#ifdef HAVE_LCD_BITMAP read_viewer_theme_file(); -#endif #ifdef HAVE_LCD_COLOR read_color_theme_file(); #endif -- cgit v1.2.3