diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-03-16 21:56:08 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-03-16 21:56:08 +0000 |
commit | 4d6374c9236b93e0bd457f99944164fc493d1120 (patch) | |
tree | ff9630fcef66e63c61cc0a74e97f21220e668f75 /apps/recorder | |
parent | 2c643b9f3e22ee07f7949a5471f726758dc40841 (diff) | |
download | rockbox-4d6374c9236b93e0bd457f99944164fc493d1120.tar.gz rockbox-4d6374c9236b93e0bd457f99944164fc493d1120.zip |
Get rid of the 'center' parameter for splashes. There were only 2 of almost 500 splashes which were not centered.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12807 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/radio.c | 16 | ||||
-rw-r--r-- | apps/recorder/recording.c | 8 |
2 files changed, 12 insertions, 12 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c index 4762bddb70..47ca978475 100644 --- a/apps/recorder/radio.c +++ b/apps/recorder/radio.c | |||
@@ -703,7 +703,7 @@ int radio_screen(void) | |||
703 | case ACTION_FM_PRESET: | 703 | case ACTION_FM_PRESET: |
704 | if(num_presets < 1) | 704 | if(num_presets < 1) |
705 | { | 705 | { |
706 | gui_syncsplash(HZ, true, str(LANG_FM_NO_PRESETS)); | 706 | gui_syncsplash(HZ, str(LANG_FM_NO_PRESETS)); |
707 | update_screen = true; | 707 | update_screen = true; |
708 | FOR_NB_SCREENS(i) | 708 | FOR_NB_SCREENS(i) |
709 | { | 709 | { |
@@ -737,7 +737,7 @@ int radio_screen(void) | |||
737 | case ACTION_FM_FREEZE: | 737 | case ACTION_FM_FREEZE: |
738 | if(!screen_freeze) | 738 | if(!screen_freeze) |
739 | { | 739 | { |
740 | gui_syncsplash(HZ, true, str(LANG_FM_FREEZE)); | 740 | gui_syncsplash(HZ, str(LANG_FM_FREEZE)); |
741 | screen_freeze = true; | 741 | screen_freeze = true; |
742 | } | 742 | } |
743 | else | 743 | else |
@@ -931,7 +931,7 @@ int radio_screen(void) | |||
931 | #if CONFIG_CODEC != SWCODEC | 931 | #if CONFIG_CODEC != SWCODEC |
932 | if(audio_status() & AUDIO_STATUS_ERROR) | 932 | if(audio_status() & AUDIO_STATUS_ERROR) |
933 | { | 933 | { |
934 | gui_syncsplash(0, true, str(LANG_DISK_FULL)); | 934 | gui_syncsplash(0, str(LANG_DISK_FULL)); |
935 | gui_syncstatusbar_draw(&statusbars,true); | 935 | gui_syncstatusbar_draw(&statusbars,true); |
936 | FOR_NB_SCREENS(i) | 936 | FOR_NB_SCREENS(i) |
937 | gui_textarea_update(&screens[i]); | 937 | gui_textarea_update(&screens[i]); |
@@ -1009,7 +1009,7 @@ static void radio_save_presets(void) | |||
1009 | } | 1009 | } |
1010 | else | 1010 | else |
1011 | { | 1011 | { |
1012 | gui_syncsplash(HZ, true, str(LANG_FM_PRESET_SAVE_FAILED)); | 1012 | gui_syncsplash(HZ, str(LANG_FM_PRESET_SAVE_FAILED)); |
1013 | } | 1013 | } |
1014 | } | 1014 | } |
1015 | 1015 | ||
@@ -1095,7 +1095,7 @@ static int radio_add_preset(void) | |||
1095 | } | 1095 | } |
1096 | else | 1096 | else |
1097 | { | 1097 | { |
1098 | gui_syncsplash(HZ, true, str(LANG_FM_NO_FREE_PRESETS)); | 1098 | gui_syncsplash(HZ, str(LANG_FM_NO_FREE_PRESETS)); |
1099 | } | 1099 | } |
1100 | return true; | 1100 | return true; |
1101 | } | 1101 | } |
@@ -1183,7 +1183,7 @@ static int save_preset_list(void) | |||
1183 | if((!p1) || (len > MAX_FILENAME) || (len == 0)) | 1183 | if((!p1) || (len > MAX_FILENAME) || (len == 0)) |
1184 | { | 1184 | { |
1185 | /* no slash, too long or too short */ | 1185 | /* no slash, too long or too short */ |
1186 | gui_syncsplash(HZ,true,str(LANG_INVALID_FILENAME)); | 1186 | gui_syncsplash(HZ, str(LANG_INVALID_FILENAME)); |
1187 | } | 1187 | } |
1188 | else | 1188 | else |
1189 | { | 1189 | { |
@@ -1203,7 +1203,7 @@ static int save_preset_list(void) | |||
1203 | } | 1203 | } |
1204 | } | 1204 | } |
1205 | else | 1205 | else |
1206 | gui_syncsplash(HZ,true,str(LANG_FM_NO_PRESETS)); | 1206 | gui_syncsplash(HZ, str(LANG_FM_NO_PRESETS)); |
1207 | 1207 | ||
1208 | return true; | 1208 | return true; |
1209 | } | 1209 | } |
@@ -1380,7 +1380,7 @@ static int scan_presets(void) | |||
1380 | freq /= 100; | 1380 | freq /= 100; |
1381 | 1381 | ||
1382 | snprintf(buf, MAX_FMPRESET_LEN, str(LANG_FM_SCANNING), freq, frac); | 1382 | snprintf(buf, MAX_FMPRESET_LEN, str(LANG_FM_SCANNING), freq, frac); |
1383 | gui_syncsplash(0, true, buf); | 1383 | gui_syncsplash(0, buf); |
1384 | 1384 | ||
1385 | if(radio_set(RADIO_SCAN_FREQUENCY, curr_freq)) | 1385 | if(radio_set(RADIO_SCAN_FREQUENCY, curr_freq)) |
1386 | { | 1386 | { |
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index a80a0df2fc..ffde856612 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c | |||
@@ -538,7 +538,7 @@ int rec_create_directory(void) | |||
538 | rc = mkdir(rec_base_directory); | 538 | rc = mkdir(rec_base_directory); |
539 | if(rc < 0 && errno != EEXIST) | 539 | if(rc < 0 && errno != EEXIST) |
540 | { | 540 | { |
541 | gui_syncsplash(HZ * 2, true, | 541 | gui_syncsplash(HZ * 2, |
542 | "Can't create the %s directory. Error code %d.", | 542 | "Can't create the %s directory. Error code %d.", |
543 | rec_base_directory, rc); | 543 | rec_base_directory, rc); |
544 | return -1; | 544 | return -1; |
@@ -870,7 +870,7 @@ bool recording_screen(bool no_source) | |||
870 | screens[1].puts((screens[1].width/w - strlen(buf))/2 + 1, | 870 | screens[1].puts((screens[1].width/w - strlen(buf))/2 + 1, |
871 | screens[1].height/(h*2) + 1, buf); | 871 | screens[1].height/(h*2) + 1, buf); |
872 | screens[1].update(); | 872 | screens[1].update(); |
873 | gui_syncsplash(0, true, str(LANG_REMOTE_LCD_OFF)); | 873 | gui_syncsplash(0, str(LANG_REMOTE_LCD_OFF)); |
874 | } | 874 | } |
875 | #endif | 875 | #endif |
876 | 876 | ||
@@ -958,7 +958,7 @@ bool recording_screen(bool no_source) | |||
958 | screens[1].puts((screens[1].width/w - strlen(buf))/2 + 1, | 958 | screens[1].puts((screens[1].width/w - strlen(buf))/2 + 1, |
959 | screens[1].height/(h*2) + 1, buf); | 959 | screens[1].height/(h*2) + 1, buf); |
960 | screens[1].update(); | 960 | screens[1].update(); |
961 | gui_syncsplash(0, true, str(LANG_REMOTE_LCD_OFF)); | 961 | gui_syncsplash(0, str(LANG_REMOTE_LCD_OFF)); |
962 | } | 962 | } |
963 | else | 963 | else |
964 | { | 964 | { |
@@ -1741,7 +1741,7 @@ bool recording_screen(bool no_source) | |||
1741 | audio_stat = audio_status(); | 1741 | audio_stat = audio_status(); |
1742 | if (audio_stat & AUDIO_STATUS_ERROR) | 1742 | if (audio_stat & AUDIO_STATUS_ERROR) |
1743 | { | 1743 | { |
1744 | gui_syncsplash(0, true, str(LANG_SYSFONT_DISK_FULL)); | 1744 | gui_syncsplash(0, str(LANG_SYSFONT_DISK_FULL)); |
1745 | gui_syncstatusbar_draw(&statusbars, true); | 1745 | gui_syncstatusbar_draw(&statusbars, true); |
1746 | 1746 | ||
1747 | FOR_NB_SCREENS(i) | 1747 | FOR_NB_SCREENS(i) |