From a4c3b03f15eefd516224e429215258bffa0221de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Tue, 24 Sep 2002 18:04:15 +0000 Subject: Removed lcd_getfontsize(). Removed font parameters to lcd_putsxy and lcd_getstringsize. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2403 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/bounce.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'apps/recorder/bounce.c') diff --git a/apps/recorder/bounce.c b/apps/recorder/bounce.c index fc11aefe68..cfb194e7ec 100644 --- a/apps/recorder/bounce.c +++ b/apps/recorder/bounce.c @@ -224,7 +224,7 @@ static void loopit(void) } snprintf(buffer, 30, "%s: %d", values[show].what, values[show].num); - lcd_putsxy(0, 56, buffer, 0); + lcd_putsxy(0, 56, buffer); timeout--; } for(i=0, yy=y, xx=x; @@ -241,13 +241,13 @@ static void loopit(void) } -Menu bounce(void) +bool bounce(void) { int w, h; char *off = "[Off] to stop"; int len = strlen(SS_TITLE); - lcd_getfontsize(SS_TITLE_FONT, &w, &h); + lcd_getstringsize(SS_TITLE,&w, &h); /* Get horizontel centering for text */ len *= w; @@ -262,10 +262,10 @@ Menu bounce(void) h /= 2; lcd_clear_display(); - lcd_putsxy(LCD_WIDTH/2-len, (LCD_HEIGHT/2)-h, SS_TITLE, SS_TITLE_FONT); + lcd_putsxy(LCD_WIDTH/2-len, (LCD_HEIGHT/2)-h, SS_TITLE); - len = strlen(off); - lcd_getfontsize(0, &w, &h); + len = 1; + lcd_getstringsize(off, &w, &h); /* Get horizontel centering for text */ len *= w; @@ -279,13 +279,13 @@ Menu bounce(void) else h /= 2; - lcd_putsxy(LCD_WIDTH/2-len, LCD_HEIGHT-(2*h), off,0); + lcd_putsxy(LCD_WIDTH/2-len, LCD_HEIGHT-(2*h), off); lcd_update(); sleep(HZ); loopit(); - return MENU_OK; + return false; } #endif -- cgit v1.2.3