summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/recorder/icons.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/recorder/icons.c b/apps/recorder/icons.c
index 5bb6d75da8..c1177c9e3b 100644
--- a/apps/recorder/icons.c
+++ b/apps/recorder/icons.c
@@ -17,16 +17,12 @@
17 * 17 *
18 ****************************************************************************/ 18 ****************************************************************************/
19#include <lcd.h> 19#include <lcd.h>
20#include <string.h>
20#include "kernel.h" 21#include "kernel.h"
21#include "sprintf.h" 22#include "sprintf.h"
23#include "rtc.h"
22 24
23#include "icons.h" 25#include "icons.h"
24#ifndef SIMULATOR
25#include "sprintf.h"
26#endif
27#ifdef HAVE_RTC
28#include "rtc.h"
29#endif
30 26
31#ifdef HAVE_LCD_BITMAP 27#ifdef HAVE_LCD_BITMAP
32 28
@@ -229,7 +225,7 @@ void statusbar_icon_volume(int percent)
229 } 225 }
230 if(TIME_BEFORE(current_tick,switch_tick)) { /* display volume lever numerical */ 226 if(TIME_BEFORE(current_tick,switch_tick)) { /* display volume lever numerical */
231 snprintf(buffer, sizeof(buffer), "%2d", percent); 227 snprintf(buffer, sizeof(buffer), "%2d", percent);
232 lcd_putsxy(ICON_VOLUME_X_POS+ICON_VOLUME_WIDTH/2-6, STATUSBAR_Y_POS, buffer, 0); 228 lcd_putsxy(ICON_VOLUME_X_POS+ICON_VOLUME_WIDTH/2-6*strlen(buffer)/2, STATUSBAR_Y_POS, buffer, 0);
233 } 229 }
234 else { /* display volume bar */ 230 else { /* display volume bar */
235 volume=volume*14/100; 231 volume=volume*14/100;