summaryrefslogtreecommitdiffstats
path: root/apps/misc.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/misc.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/misc.c')
-rw-r--r--apps/misc.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/apps/misc.c b/apps/misc.c
index b20a0095ab..2d60ecca49 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -84,10 +84,10 @@
#if defined(HAVE_RECORDING) && !defined(__PCTOOL__)
#include "recording.h"
#endif
-#if defined(HAVE_LCD_BITMAP) && !defined(__PCTOOL__)
+#if !defined(__PCTOOL__)
#include "bmp.h"
#include "icons.h"
-#endif /* End HAVE_LCD_BITMAP */
+#endif /* !__PCTOOL__ */
#include "bookmark.h"
#include "wps.h"
#include "playback.h"
@@ -712,7 +712,6 @@ long default_event_handler(long event)
int show_logo( void )
{
-#ifdef HAVE_LCD_BITMAP
char version[32];
int font_h, font_w;
@@ -735,14 +734,6 @@ int show_logo( void )
#endif
lcd_setfont(FONT_UI);
-#else
- char *rockbox = " ROCKbox!";
-
- lcd_clear_display();
- lcd_double_height(true);
- lcd_puts(0, 0, rockbox);
- lcd_puts_scroll(0, 1, rbversion);
-#endif
lcd_update();
#ifdef HAVE_REMOTE_LCD
@@ -1439,7 +1430,6 @@ int hex_to_rgb(const char* hex, int* color)
}
#endif /* HAVE_LCD_COLOR */
-#ifdef HAVE_LCD_BITMAP
/* '0'-'3' are ASCII 0x30 to 0x33 */
#define is0123(x) (((x) & 0xfc) == 0x30)
#if !defined(__PCTOOL__) || defined(CHECKWPS)
@@ -1482,7 +1472,6 @@ int clamp_value_wrap(int value, int max, int min)
return value;
}
#endif
-#endif
#ifndef __PCTOOL__
@@ -1494,25 +1483,21 @@ static int current_activity_top = 0;
void push_current_activity(enum current_activity screen)
{
current_activity[current_activity_top++] = screen;
-#ifdef HAVE_LCD_BITMAP
FOR_NB_SCREENS(i)
{
skinlist_set_cfg(i, NULL);
skin_update(CUSTOM_STATUSBAR, i, SKIN_REFRESH_ALL);
}
-#endif
}
void pop_current_activity(void)
{
current_activity_top--;
-#ifdef HAVE_LCD_BITMAP
FOR_NB_SCREENS(i)
{
skinlist_set_cfg(i, NULL);
skin_update(CUSTOM_STATUSBAR, i, SKIN_REFRESH_ALL);
}
-#endif
}
enum current_activity get_current_activity(void)
{