summaryrefslogtreecommitdiff
path: root/apps/recorder/icons.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder/icons.c')
-rw-r--r--apps/recorder/icons.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/apps/recorder/icons.c b/apps/recorder/icons.c
index 76169fe0ee..6414a17418 100644
--- a/apps/recorder/icons.c
+++ b/apps/recorder/icons.c
@@ -235,10 +235,12 @@ void statusbar_icon_volume(int percent)
235 /* display volume lever numerical? */ 235 /* display volume lever numerical? */
236 if (TIME_BEFORE(current_tick,switch_tick)) { 236 if (TIME_BEFORE(current_tick,switch_tick)) {
237 snprintf(buffer, sizeof(buffer), "%2d", percent); 237 snprintf(buffer, sizeof(buffer), "%2d", percent);
238 lcd_getstringsize(buffer, FONT_SYSFIXED, &width, &height); 238 lcd_setfont(FONT_SYSFIXED);
239 lcd_getstringsize(buffer, &width, &height);
239 if (height <= STATUSBAR_HEIGHT) 240 if (height <= STATUSBAR_HEIGHT)
240 lcd_putsxy(ICON_VOLUME_X_POS + ICON_VOLUME_WIDTH / 2 - 241 lcd_putsxy(ICON_VOLUME_X_POS + ICON_VOLUME_WIDTH / 2 -
241 width/2, STATUSBAR_Y_POS, buffer, FONT_SYSFIXED); 242 width/2, STATUSBAR_Y_POS, buffer);
243 lcd_setfont(FONT_UI);
242 } 244 }
243 else { /* display volume bar */ 245 else { /* display volume bar */
244 volume = volume * 14 / 100; 246 volume = volume * 14 / 100;
@@ -246,7 +248,8 @@ void statusbar_icon_volume(int percent)
246 if(i%2 == 0) 248 if(i%2 == 0)
247 step++; 249 step++;
248 for(j=1; j <= step; j++) 250 for(j=1; j <= step; j++)
249 lcd_drawpixel(ICON_VOLUME_X_POS + i, STATUSBAR_Y_POS + 7 - j); 251 lcd_drawpixel(ICON_VOLUME_X_POS + i,
252 STATUSBAR_Y_POS + 7 - j);
250 } 253 }
251 } 254 }
252 } 255 }
@@ -307,8 +310,10 @@ void statusbar_time(int hour, int minute)
307 strncpy(buffer, "--:--", sizeof buffer); 310 strncpy(buffer, "--:--", sizeof buffer);
308 } 311 }
309 312
310 lcd_getstringsize(buffer, FONT_SYSFIXED, &width, &height); 313 lcd_setfont(FONT_SYSFIXED);
314 lcd_getstringsize(buffer, &width, &height);
311 if (height <= STATUSBAR_HEIGHT) 315 if (height <= STATUSBAR_HEIGHT)
312 lcd_putsxy(TIME_X_END - width, STATUSBAR_Y_POS, buffer, FONT_SYSFIXED); 316 lcd_putsxy(TIME_X_END - width, STATUSBAR_Y_POS, buffer);
317 lcd_setfont(FONT_UI);
313} 318}
314#endif 319#endif