summaryrefslogtreecommitdiff
path: root/apps/recorder/bounce.c
diff options
context:
space:
mode:
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)
224 } 224 }
225 snprintf(buffer, 30, "%s: %d", 225 snprintf(buffer, 30, "%s: %d",
226 values[show].what, values[show].num); 226 values[show].what, values[show].num);
227 lcd_putsxy(0, 56, buffer, 0); 227 lcd_putsxy(0, 56, buffer);
228 timeout--; 228 timeout--;
229 } 229 }
230 for(i=0, yy=y, xx=x; 230 for(i=0, yy=y, xx=x;
@@ -241,13 +241,13 @@ static void loopit(void)
241} 241}
242 242
243 243
244Menu bounce(void) 244bool bounce(void)
245{ 245{
246 int w, h; 246 int w, h;
247 char *off = "[Off] to stop"; 247 char *off = "[Off] to stop";
248 int len = strlen(SS_TITLE); 248 int len = strlen(SS_TITLE);
249 249
250 lcd_getfontsize(SS_TITLE_FONT, &w, &h); 250 lcd_getstringsize(SS_TITLE,&w, &h);
251 251
252 /* Get horizontel centering for text */ 252 /* Get horizontel centering for text */
253 len *= w; 253 len *= w;
@@ -262,10 +262,10 @@ Menu bounce(void)
262 h /= 2; 262 h /= 2;
263 263
264 lcd_clear_display(); 264 lcd_clear_display();
265 lcd_putsxy(LCD_WIDTH/2-len, (LCD_HEIGHT/2)-h, SS_TITLE, SS_TITLE_FONT); 265 lcd_putsxy(LCD_WIDTH/2-len, (LCD_HEIGHT/2)-h, SS_TITLE);
266 266
267 len = strlen(off); 267 len = 1;
268 lcd_getfontsize(0, &w, &h); 268 lcd_getstringsize(off, &w, &h);
269 269
270 /* Get horizontel centering for text */ 270 /* Get horizontel centering for text */
271 len *= w; 271 len *= w;
@@ -279,13 +279,13 @@ Menu bounce(void)
279 else 279 else
280 h /= 2; 280 h /= 2;
281 281
282 lcd_putsxy(LCD_WIDTH/2-len, LCD_HEIGHT-(2*h), off,0); 282 lcd_putsxy(LCD_WIDTH/2-len, LCD_HEIGHT-(2*h), off);
283 283
284 lcd_update(); 284 lcd_update();
285 sleep(HZ); 285 sleep(HZ);
286 loopit(); 286 loopit();
287 287
288 return MENU_OK; 288 return false;
289} 289}
290 290
291#endif 291#endif