From c9397742691b2920538fe600d1eb8ca154a4d448 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 12 Apr 2007 12:14:54 +0000 Subject: 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 --- apps/menus/main_menu.c | 10 +++++++++- apps/misc.c | 4 +++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c index e59a9c978f..780d35d321 100644 --- a/apps/menus/main_menu.c +++ b/apps/menus/main_menu.c @@ -27,6 +27,7 @@ #include "settings.h" #include "powermgmt.h" #include "menu.h" +#include "misc.h" #include "settings_menu.h" #include "exported_menus.h" #include "tree.h" @@ -115,7 +116,14 @@ MAKE_MENU(manage_settings, ID2P(LANG_MANAGE_MENU), NULL, Icon_Config, 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; } diff --git a/apps/misc.c b/apps/misc.c index 8004589732..f536f5c93f 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -880,6 +880,7 @@ int show_logo( void ) lcd_getstringsize((unsigned char *)"A", &font_w, &font_h); lcd_putsxy((LCD_WIDTH/2) - ((strlen(version)*font_w)/2), LCD_HEIGHT-font_h, (unsigned char *)version); + lcd_setfont(FONT_UI); #else char *rockbox = " ROCKbox!"; @@ -898,7 +899,8 @@ int show_logo( void ) lcd_remote_setfont(FONT_SYSFIXED); lcd_remote_getstringsize((unsigned char *)"A", &font_w, &font_h); 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(); #endif -- cgit v1.2.3