summaryrefslogtreecommitdiffstats
path: root/apps/onplay.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-02-03 19:37:56 -0500
committerSolomon Peachy <pizza@shaftnet.org>2019-02-04 02:31:07 +0100
commit32e074584857a2e107a91d51c2531d67747331fd (patch)
tree20493d841b6bc3ab39e0a3a074637a484e2f921d /apps/onplay.c
parentfd9d4a889b086c331f1c89d2446ebb42a65187b5 (diff)
downloadrockbox-32e074584857a2e107a91d51c2531d67747331fd.tar.gz
rockbox-32e074584857a2e107a91d51c2531d67747331fd.tar.bz2
rockbox-32e074584857a2e107a91d51c2531d67747331fd.zip
Fix minor issues introduced in fe95127 (Playlist playing time)
* Custom statusbars inappropriately overwriten * Off-by-one error displaying playlist position. Change-Id: I08df67110fab97ed213c53e8fa86d386367cd6be
Diffstat (limited to 'apps/onplay.c')
-rw-r--r--apps/onplay.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index 092d23406b..095a337d6b 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -289,7 +289,7 @@ static const char * playing_time_get_or_speak_info(int selected_item, void * dat
case 4: { /* track index */
int track_perc = (pti->curr_playing+1) *100 / pti->nb_tracks;
snprintf(buf, buffer_len, str(LANG_PLAYTIME_TRACK),
- pti->curr_playing, pti->nb_tracks, track_perc);
+ pti->curr_playing + 1, pti->nb_tracks, track_perc);
if (say_it)
talk_ids(false, LANG_PLAYTIME_TRACK,
TALK_ID(pti->curr_playing+1, UNIT_INT),
@@ -430,10 +430,10 @@ static bool playing_time(void)
gui_synclist_set_voice_callback(&pt_lists, playing_time_speak_info);
gui_synclist_set_nb_items(&pt_lists, 8);
gui_synclist_draw(&pt_lists);
- gui_syncstatusbar_draw(&statusbars, true);
+/* gui_syncstatusbar_draw(&statusbars, true); */
gui_synclist_speak_item(&pt_lists);
while (true) {
- gui_syncstatusbar_draw(&statusbars, false);
+/* gui_syncstatusbar_draw(&statusbars, false); */
if (list_do_action(CONTEXT_LIST, HZ/2,
&pt_lists, &key, LIST_WRAP_UNLESS_HELD) == 0
&& key!=ACTION_NONE && key!=ACTION_UNKNOWN)