diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-06-28 23:15:47 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-06-28 23:15:47 +0000 |
commit | 7e11acbce9b9a63c28ded055d02301175391e027 (patch) | |
tree | ea8d30e7281e8d720d6dc8ea51804e1749282697 /apps/recorder/recording.c | |
parent | c2bf5dfe12978b44d5d890a37f256c8d9f510660 (diff) | |
download | rockbox-7e11acbce9b9a63c28ded055d02301175391e027.tar.gz rockbox-7e11acbce9b9a63c28ded055d02301175391e027.zip |
Second part of graphics api rework. Bitmap drawing and text output converted; some code cleanup and more optimisations.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6906 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/recording.c')
-rw-r--r-- | apps/recorder/recording.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 84c90d2d86..9e58cec19e 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c | |||
@@ -870,7 +870,7 @@ bool f2_rec_screen(void) | |||
870 | snprintf(buf, 32, "%d", global_settings.rec_quality); | 870 | snprintf(buf, 32, "%d", global_settings.rec_quality); |
871 | lcd_putsxy(0, LCD_HEIGHT/2-h, buf); | 871 | lcd_putsxy(0, LCD_HEIGHT/2-h, buf); |
872 | lcd_bitmap(bitmap_icons_7x8[Icon_FastBackward], | 872 | lcd_bitmap(bitmap_icons_7x8[Icon_FastBackward], |
873 | LCD_WIDTH/2 - 16, LCD_HEIGHT/2 - 4, 7, 8, true); | 873 | LCD_WIDTH/2 - 16, LCD_HEIGHT/2 - 4, 7, 8); |
874 | 874 | ||
875 | /* Frequency */ | 875 | /* Frequency */ |
876 | snprintf(buf, sizeof buf, "%s:", str(LANG_RECORDING_FREQUENCY)); | 876 | snprintf(buf, sizeof buf, "%s:", str(LANG_RECORDING_FREQUENCY)); |
@@ -880,7 +880,7 @@ bool f2_rec_screen(void) | |||
880 | lcd_getstringsize(ptr, &w, &h); | 880 | lcd_getstringsize(ptr, &w, &h); |
881 | lcd_putsxy((LCD_WIDTH-w)/2, LCD_HEIGHT - h, ptr); | 881 | lcd_putsxy((LCD_WIDTH-w)/2, LCD_HEIGHT - h, ptr); |
882 | lcd_bitmap(bitmap_icons_7x8[Icon_DownArrow], | 882 | lcd_bitmap(bitmap_icons_7x8[Icon_DownArrow], |
883 | LCD_WIDTH/2 - 3, LCD_HEIGHT - h*3, 7, 8, true); | 883 | LCD_WIDTH/2 - 3, LCD_HEIGHT - h*3, 7, 8); |
884 | 884 | ||
885 | /* Channel mode */ | 885 | /* Channel mode */ |
886 | switch ( global_settings.rec_channels ) { | 886 | switch ( global_settings.rec_channels ) { |
@@ -901,7 +901,7 @@ bool f2_rec_screen(void) | |||
901 | lcd_getstringsize(ptr, &w, &h); | 901 | lcd_getstringsize(ptr, &w, &h); |
902 | lcd_putsxy(LCD_WIDTH - w, LCD_HEIGHT/2, ptr); | 902 | lcd_putsxy(LCD_WIDTH - w, LCD_HEIGHT/2, ptr); |
903 | lcd_bitmap(bitmap_icons_7x8[Icon_FastForward], | 903 | lcd_bitmap(bitmap_icons_7x8[Icon_FastForward], |
904 | LCD_WIDTH/2 + 8, LCD_HEIGHT/2 - 4, 7, 8, true); | 904 | LCD_WIDTH/2 + 8, LCD_HEIGHT/2 - 4, 7, 8); |
905 | 905 | ||
906 | lcd_update(); | 906 | lcd_update(); |
907 | 907 | ||
@@ -995,14 +995,14 @@ bool f3_rec_screen(void) | |||
995 | lcd_getstringsize(ptr, &w, &h); | 995 | lcd_getstringsize(ptr, &w, &h); |
996 | lcd_putsxy(0, LCD_HEIGHT/2-h, ptr); | 996 | lcd_putsxy(0, LCD_HEIGHT/2-h, ptr); |
997 | lcd_bitmap(bitmap_icons_7x8[Icon_FastBackward], | 997 | lcd_bitmap(bitmap_icons_7x8[Icon_FastBackward], |
998 | LCD_WIDTH/2 - 16, LCD_HEIGHT/2 - 4, 7, 8, true); | 998 | LCD_WIDTH/2 - 16, LCD_HEIGHT/2 - 4, 7, 8); |
999 | 999 | ||
1000 | /* trigger setup */ | 1000 | /* trigger setup */ |
1001 | ptr = str(LANG_RECORD_TRIGGER); | 1001 | ptr = str(LANG_RECORD_TRIGGER); |
1002 | lcd_getstringsize(ptr,&w,&h); | 1002 | lcd_getstringsize(ptr,&w,&h); |
1003 | lcd_putsxy((LCD_WIDTH-w)/2, LCD_HEIGHT - h*2, ptr); | 1003 | lcd_putsxy((LCD_WIDTH-w)/2, LCD_HEIGHT - h*2, ptr); |
1004 | lcd_bitmap(bitmap_icons_7x8[Icon_DownArrow], | 1004 | lcd_bitmap(bitmap_icons_7x8[Icon_DownArrow], |
1005 | LCD_WIDTH/2 - 3, LCD_HEIGHT - h*3, 7, 8, true); | 1005 | LCD_WIDTH/2 - 3, LCD_HEIGHT - h*3, 7, 8); |
1006 | 1006 | ||
1007 | lcd_update(); | 1007 | lcd_update(); |
1008 | 1008 | ||