summaryrefslogtreecommitdiff
path: root/apps/recorder/bounce.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-09-24 18:04:15 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-09-24 18:04:15 +0000
commita4c3b03f15eefd516224e429215258bffa0221de (patch)
tree84ab843fdeaed0010f09a5de80ba679258e4fcd3 /apps/recorder/bounce.c
parent614272c45f6235b01685d3aa48b5a154f9362c10 (diff)
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
Diffstat (limited to 'apps/recorder/bounce.c')
-rw-r--r--apps/recorder/bounce.c16
1 files changed, 8 insertions, 8 deletions
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