forked from len0rd/rockbox
If credits.rock isnt loadable manually show the logo and version.
Hopefully fixes FS#6799 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13124 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8b9df97d96
commit
c939774269
2 changed files with 12 additions and 2 deletions
|
|
@ -27,6 +27,7 @@
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#include "powermgmt.h"
|
#include "powermgmt.h"
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
|
#include "misc.h"
|
||||||
#include "settings_menu.h"
|
#include "settings_menu.h"
|
||||||
#include "exported_menus.h"
|
#include "exported_menus.h"
|
||||||
#include "tree.h"
|
#include "tree.h"
|
||||||
|
|
@ -115,7 +116,14 @@ MAKE_MENU(manage_settings, ID2P(LANG_MANAGE_MENU), NULL, Icon_Config,
|
||||||
|
|
||||||
static bool show_credits(void)
|
static bool show_credits(void)
|
||||||
{
|
{
|
||||||
plugin_load(PLUGIN_DIR "/credits.rock",NULL);
|
if (plugin_load(PLUGIN_DIR "/credits.rock",NULL) != PLUGIN_OK)
|
||||||
|
{
|
||||||
|
/* show the rockbox logo and version untill a button is pressed */
|
||||||
|
action_signalscreenchange();
|
||||||
|
show_logo();
|
||||||
|
get_action(CONTEXT_STD, TIMEOUT_BLOCK);
|
||||||
|
action_signalscreenchange();
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -880,6 +880,7 @@ int show_logo( void )
|
||||||
lcd_getstringsize((unsigned char *)"A", &font_w, &font_h);
|
lcd_getstringsize((unsigned char *)"A", &font_w, &font_h);
|
||||||
lcd_putsxy((LCD_WIDTH/2) - ((strlen(version)*font_w)/2),
|
lcd_putsxy((LCD_WIDTH/2) - ((strlen(version)*font_w)/2),
|
||||||
LCD_HEIGHT-font_h, (unsigned char *)version);
|
LCD_HEIGHT-font_h, (unsigned char *)version);
|
||||||
|
lcd_setfont(FONT_UI);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
char *rockbox = " ROCKbox!";
|
char *rockbox = " ROCKbox!";
|
||||||
|
|
@ -898,7 +899,8 @@ int show_logo( void )
|
||||||
lcd_remote_setfont(FONT_SYSFIXED);
|
lcd_remote_setfont(FONT_SYSFIXED);
|
||||||
lcd_remote_getstringsize((unsigned char *)"A", &font_w, &font_h);
|
lcd_remote_getstringsize((unsigned char *)"A", &font_w, &font_h);
|
||||||
lcd_remote_putsxy((LCD_REMOTE_WIDTH/2) - ((strlen(version)*font_w)/2),
|
lcd_remote_putsxy((LCD_REMOTE_WIDTH/2) - ((strlen(version)*font_w)/2),
|
||||||
LCD_REMOTE_HEIGHT-font_h, (unsigned char *)version);
|
LCD_REMOTE_HEIGHT-font_h, (unsigned char *)version);
|
||||||
|
lcd_setfont(FONT_UI);
|
||||||
lcd_remote_update();
|
lcd_remote_update();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue