mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
remove rockboxlogo after boot INIT_ATTR
nets about 5k on clipzip (less on mono, more on others) to move rockboxlogo to .initdata section Remove show_logo completely and move to main.c remove plugin stub give credits plugin its own copy credit fallback is now show_info() Change-Id: Id9ed787e605ed29e7ab1e7a74d3821cd0f840ed4
This commit is contained in:
parent
f37ebe5ed2
commit
1930ca8d66
9 changed files with 138 additions and 91 deletions
54
apps/misc.c
54
apps/misc.c
|
@ -54,7 +54,6 @@
|
|||
#include "power.h"
|
||||
#include "powermgmt.h"
|
||||
#include "backlight.h"
|
||||
#include "version.h"
|
||||
#include "font.h"
|
||||
#include "splash.h"
|
||||
#include "tagcache.h"
|
||||
|
@ -756,59 +755,6 @@ long default_event_handler(long event)
|
|||
return default_event_handler_ex(event, NULL, NULL);
|
||||
}
|
||||
|
||||
int show_logo( void )
|
||||
{
|
||||
unsigned char version[32];
|
||||
int font_h, ver_w;
|
||||
|
||||
snprintf(version, sizeof(version), "Ver. %s", rbversion);
|
||||
|
||||
ver_w = font_getstringsize(version, NULL, &font_h, FONT_SYSFIXED);
|
||||
|
||||
lcd_clear_display();
|
||||
|
||||
lcd_setfont(FONT_SYSFIXED);
|
||||
|
||||
#if defined(SANSA_CLIP) || defined(SANSA_CLIPV2) || defined(SANSA_CLIPPLUS)
|
||||
/* display the logo in the blue area of the screen (bottom 48 pixels) */
|
||||
if (ver_w > LCD_WIDTH)
|
||||
lcd_putsxy(0, 0, rbversion);
|
||||
else
|
||||
lcd_putsxy((LCD_WIDTH/2) - (ver_w/2), 0, version);
|
||||
|
||||
lcd_bmp(&bm_rockboxlogo, (LCD_WIDTH - BMPWIDTH_rockboxlogo) / 2, 16);
|
||||
#else
|
||||
lcd_bmp(&bm_rockboxlogo, (LCD_WIDTH - BMPWIDTH_rockboxlogo) / 2, 10);
|
||||
|
||||
if (ver_w > LCD_WIDTH)
|
||||
lcd_putsxy(0, LCD_HEIGHT-font_h, rbversion);
|
||||
else
|
||||
lcd_putsxy((LCD_WIDTH/2) - (ver_w/2), LCD_HEIGHT-font_h, version);
|
||||
#endif
|
||||
lcd_setfont(FONT_UI);
|
||||
|
||||
lcd_update();
|
||||
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
lcd_remote_clear_display();
|
||||
lcd_remote_bmp(&bm_remote_rockboxlogo, 0, 10);
|
||||
lcd_remote_setfont(FONT_SYSFIXED);
|
||||
|
||||
if (ver_w > LCD_REMOTE_WIDTH)
|
||||
lcd_remote_putsxy(0, LCD_REMOTE_HEIGHT-font_h, rbversion);
|
||||
else
|
||||
lcd_remote_putsxy((LCD_REMOTE_WIDTH/2) - (ver_w/2),
|
||||
LCD_REMOTE_HEIGHT-font_h, version);
|
||||
|
||||
lcd_remote_setfont(FONT_UI);
|
||||
lcd_remote_update();
|
||||
#endif
|
||||
#ifdef SIMULATOR
|
||||
sleep(HZ); /* sim is too fast to see logo */
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef BOOTFILE
|
||||
#if !defined(USB_NONE) && !defined(USB_HANDLED_BY_OF) || defined(HAVE_HOTSWAP_STORAGE_AS_MAIN)
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue