Small change to make currently playing track stand out more.

This commit is contained in:
rocky
2005-03-19 23:47:53 +00:00
parent a7abfdcb87
commit 4bc36eac82

View File

@@ -1,5 +1,5 @@
/* /*
$Id: cdda-player.c,v 1.22 2005/03/19 23:31:11 rocky Exp $ $Id: cdda-player.c,v 1.23 2005/03/19 23:47:53 rocky Exp $
Copyright (C) 2005 Rocky Bernstein <rocky@panix.com> Copyright (C) 2005 Rocky Bernstein <rocky@panix.com>
@@ -643,13 +643,13 @@ display_status(bool b_status_only)
clrtoeol(); clrtoeol();
} }
if (strlen(p_cd_info->title)) { if (strlen(p_cd_info->title)) {
mvprintw(LINE_TRACK_TITLE, 0, (char *) "track %2d title : %s [%s]", mvprintw(LINE_TRACK_TITLE, 0, (char *) ">track %2d title : %s [%s]",
sub.track, p_cd_info->title, sub.track, p_cd_info->title,
(char *) p_cd_info->b_cdtext ? "CD-Text" : "CDDB"); (char *) p_cd_info->b_cdtext ? "CD-Text" : "CDDB");
clrtoeol(); clrtoeol();
} }
if (strlen(p_cd_info->artist)) { if (strlen(p_cd_info->artist)) {
mvprintw(LINE_TRACK_ARTIST, 0, (char *) "track %2d artist : %s [%s]", mvprintw(LINE_TRACK_ARTIST, 0, (char *) ">track %2d artist: %s [%s]",
sub.track, p_cd_info->artist, sub.track, p_cd_info->artist,
p_cd_info->b_cdtext ? "CD-Text" : "CDDB"); p_cd_info->b_cdtext ? "CD-Text" : "CDDB");
clrtoeol(); clrtoeol();
@@ -858,7 +858,7 @@ list_tracks(void)
sprintf(line, "%2d %02d:%02d %s ", i, sprintf(line, "%2d %02d:%02d %s ", i,
s / CDIO_CD_SECS_PER_MIN, s % CDIO_CD_SECS_PER_MIN, s / CDIO_CD_SECS_PER_MIN, s % CDIO_CD_SECS_PER_MIN,
(sub.audio_status == CDIO_MMC_READ_SUB_ST_PLAY && (sub.audio_status == CDIO_MMC_READ_SUB_ST_PLAY &&
sub.track == i) ? "*" : "|"); sub.track == i) ? "->" : " |");
if (b_record) { if (b_record) {
if ( strlen(cd_info[i].title) ) if ( strlen(cd_info[i].title) )
strcat(line, cd_info[i].title); strcat(line, cd_info[i].title);