From c3f95cdd75155279f52b8cac33fc97b37826ccb1 Mon Sep 17 00:00:00 2001 From: Robert Hak Date: Fri, 31 May 2002 07:13:08 +0000 Subject: cleaner version of the version and splash merge git-svn-id: svn://svn.rockbox.org/rockbox/trunk@839 a1c6a512-1295-4272-9138-f99709370657 --- apps/main_menu.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/main_menu.c b/apps/main_menu.c index 961cd0be4f..2d369aebee 100644 --- a/apps/main_menu.c +++ b/apps/main_menu.c @@ -68,12 +68,8 @@ int show_logo( void ) snprintf(version, sizeof(version), "Ver. %s", appsversion); lcd_getfontsize(0, &font_w, &font_h); - - /* lcd_puts needs line height in Chars on screen not pixels */ - width = ((LCD_WIDTH/font_w) - strlen(version)) / 2; - height = ((height+10)/font_h)+1; - - lcd_puts(width, height, version); + lcd_putsxy((LCD_WIDTH/2) - ((strlen(version)*font_w)/2), + height+10+font_h, version, 0); #else char *rockbox = "ROCKbox!"; lcd_puts(0, 0, rockbox); -- cgit v1.2.3