diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-09-24 18:04:15 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-09-24 18:04:15 +0000 |
commit | a4c3b03f15eefd516224e429215258bffa0221de (patch) | |
tree | 84ab843fdeaed0010f09a5de80ba679258e4fcd3 /apps/recorder/icons.c | |
parent | 614272c45f6235b01685d3aa48b5a154f9362c10 (diff) | |
download | rockbox-a4c3b03f15eefd516224e429215258bffa0221de.tar.gz rockbox-a4c3b03f15eefd516224e429215258bffa0221de.zip |
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/icons.c')
-rw-r--r-- | apps/recorder/icons.c | 15 |
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) /* display volume lever numerical? */ if (TIME_BEFORE(current_tick,switch_tick)) { snprintf(buffer, sizeof(buffer), "%2d", percent); - lcd_getstringsize(buffer, FONT_SYSFIXED, &width, &height); + lcd_setfont(FONT_SYSFIXED); + lcd_getstringsize(buffer, &width, &height); if (height <= STATUSBAR_HEIGHT) lcd_putsxy(ICON_VOLUME_X_POS + ICON_VOLUME_WIDTH / 2 - - width/2, STATUSBAR_Y_POS, buffer, FONT_SYSFIXED); + width/2, STATUSBAR_Y_POS, buffer); + lcd_setfont(FONT_UI); } else { /* display volume bar */ volume = volume * 14 / 100; @@ -246,7 +248,8 @@ void statusbar_icon_volume(int percent) if(i%2 == 0) step++; for(j=1; j <= step; j++) - lcd_drawpixel(ICON_VOLUME_X_POS + i, STATUSBAR_Y_POS + 7 - j); + lcd_drawpixel(ICON_VOLUME_X_POS + i, + STATUSBAR_Y_POS + 7 - j); } } } @@ -307,8 +310,10 @@ void statusbar_time(int hour, int minute) strncpy(buffer, "--:--", sizeof buffer); } - lcd_getstringsize(buffer, FONT_SYSFIXED, &width, &height); + lcd_setfont(FONT_SYSFIXED); + lcd_getstringsize(buffer, &width, &height); if (height <= STATUSBAR_HEIGHT) - lcd_putsxy(TIME_X_END - width, STATUSBAR_Y_POS, buffer, FONT_SYSFIXED); + lcd_putsxy(TIME_X_END - width, STATUSBAR_Y_POS, buffer); + lcd_setfont(FONT_UI); } #endif |