summaryrefslogtreecommitdiffstats
path: root/apps/plugins/logo.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/logo.c')
-rw-r--r--apps/plugins/logo.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/apps/plugins/logo.c b/apps/plugins/logo.c
index 60bed3b826..984a65aa34 100644
--- a/apps/plugins/logo.c
+++ b/apps/plugins/logo.c
@@ -29,7 +29,6 @@ static const struct button_mapping *plugin_contexts[]
#endif
};
-#ifdef HAVE_LCD_BITMAP
#define DISPLAY_WIDTH LCD_WIDTH
#define DISPLAY_HEIGHT LCD_HEIGHT
#define RAND_SCALE 5
@@ -48,19 +47,6 @@ static const struct button_mapping *plugin_contexts[]
#define LOGO_WIDTH BMPWIDTH_rockboxlogo
#define LOGO_HEIGHT BMPHEIGHT_rockboxlogo
-#else /* !LCD_BITMAP */
-#define DISPLAY_WIDTH 55
-#define DISPLAY_HEIGHT 14
-#define RAND_SCALE 2
-#define LOGO_WIDTH 16
-#define LOGO_HEIGHT 7
-#define LOGO rockbox16x7
-const unsigned char rockbox16x7[] = {
- 0x47, 0x18, 0xa6, 0xd8, 0x66, 0xde, 0xb7, 0x9b,
- 0x76, 0xdb, 0x26, 0xdb, 0x66, 0xde,
-};
-#endif /* !LCD_BITMAP */
-
/* We use PLA */
#define LP_QUIT PLA_EXIT
#define LP_QUIT2 PLA_CANCEL
@@ -88,7 +74,6 @@ enum plugin_status plugin_start(const void* parameter) {
dy = rb->rand()%(2*RAND_SCALE+1) - RAND_SCALE;
while (1) {
-#ifdef HAVE_LCD_BITMAP
rb->lcd_clear_display();
rb->lcd_bitmap((const fb_data*)LOGO, x, y, LOGO_WIDTH, LOGO_HEIGHT);
#ifdef REMOTE_LOGO
@@ -98,12 +83,6 @@ enum plugin_status plugin_start(const void* parameter) {
(y * (REMOTE_HEIGHT - REMOTE_LOGO_HEIGHT)) / (DISPLAY_HEIGHT - LOGO_HEIGHT),
REMOTE_LOGO_WIDTH, REMOTE_LOGO_HEIGHT);
#endif
-#else
- pgfx_clear_display();
- pgfx_mono_bitmap(LOGO, x % 5, y, LOGO_WIDTH, LOGO_HEIGHT);
- cpos = x / 5;
-#endif
-
x += dx;
if (x < 0) {
dx = -dx;
@@ -124,19 +103,10 @@ enum plugin_status plugin_start(const void* parameter) {
y = DISPLAY_HEIGHT - LOGO_HEIGHT;
}
-#ifdef HAVE_LCD_BITMAP
rb->lcd_update();
#ifdef REMOTE_LOGO
rb->lcd_remote_update();
#endif
-#else
- if (cpos != old_cpos) {
- rb->lcd_clear_display();
- pgfx_display(cpos, 0);
- old_cpos = cpos;
- }
- pgfx_update();
-#endif
rb->sleep(HZ/timer);