summaryrefslogtreecommitdiffstats
path: root/apps/main.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-17 10:31:31 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-24 21:20:13 +0000
commit658026e6267277b27d297c481728f74d160a8481 (patch)
tree915a9d2bb48469bdd5b9127dc19a61f230721a6c /apps/main.c
parent8cb555460ff79e636a7907fb2589e16db98c8600 (diff)
downloadrockbox-658026e626.tar.gz
rockbox-658026e626.zip
[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
Diffstat (limited to 'apps/main.c')
-rw-r--r--apps/main.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/apps/main.c b/apps/main.c
index 4f468fa65b..e1eccc0fa9 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -167,9 +167,7 @@ int main(void)
screens[i].clear_display();
screens[i].update();
}
-#ifdef HAVE_LCD_BITMAP
list_init();
-#endif
tree_gui_init();
/* Keep the order of this 3
* Must be done before any code uses the multi-screen API */
@@ -280,7 +278,6 @@ static void init_tagcache(void)
talk_number(tagcache_get_max_commit_step(), true);
}
#endif
-#ifdef HAVE_LCD_BITMAP
if (lang_is_rtl())
{
splashf(0, "[%d/%d] %s", ret, tagcache_get_max_commit_step(),
@@ -291,12 +288,6 @@ static void init_tagcache(void)
splashf(0, "%s [%d/%d]", str(LANG_TAGCACHE_INIT), ret,
tagcache_get_max_commit_step());
}
-#else
- lcd_double_height(false);
- lcd_putsf(0, 1, " DB [%d/%d]", ret,
- tagcache_get_max_commit_step());
- lcd_update();
-#endif
clear = true;
}
sleep(HZ/4);
@@ -326,11 +317,9 @@ static void init(void)
#ifdef HAVE_REMOTE_LCD
lcd_remote_init();
#endif
-#ifdef HAVE_LCD_BITMAP
FOR_NB_SCREENS(i)
global_status.font_id[i] = FONT_SYSFIXED;
font_init();
-#endif
show_logo();
#ifndef USB_NONE
usb_init();
@@ -428,11 +417,9 @@ static void init(void)
#ifdef HAVE_REMOTE_LCD
lcd_remote_init();
#endif
-#ifdef HAVE_LCD_BITMAP
FOR_NB_SCREENS(i)
global_status.font_id[i] = FONT_SYSFIXED;
font_init();
-#endif
settings_reset();
@@ -507,14 +494,12 @@ static void init(void)
CHART("<storage_init");
if(rc)
{
-#ifdef HAVE_LCD_BITMAP
lcd_clear_display();
lcd_putsf(0, 1, "ATA error: %d", rc);
lcd_puts(0, 3, "Press ON to debug");
lcd_update();
while(!(button_get(true) & BUTTON_REL)); /* DO NOT CHANGE TO ACTION SYSTEM */
dbg_ports();
-#endif
panicf("ata: %d", rc);
}
@@ -565,10 +550,8 @@ static void init(void)
lcd_clear_display();
lcd_puts(0, 0, "No partition");
lcd_puts(0, 1, "found.");
-#ifdef HAVE_LCD_BITMAP
lcd_puts(0, 2, "Insert USB cable");
lcd_puts(0, 3, "and fix it.");
-#endif
lcd_update();
while(button_get(true) != SYS_USB_CONNECTED) {};