forked from len0rd/rockbox
Added basic handling of \r\n (ignores it) to the Custom WPS
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2043 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a9b2208723
commit
7d808a83e4
1 changed files with 16 additions and 0 deletions
16
apps/wps.c
16
apps/wps.c
|
@ -321,6 +321,10 @@ bool display_custom_wps(int x_val, int y_val, bool do_scroll, char *wps_string)
|
|||
case 'd': /* ID3 Album/Disc */
|
||||
snprintf(tmpbuf, sizeof(tmpbuf), "%s", id3->album);
|
||||
break;
|
||||
case '\r':
|
||||
case '\n':
|
||||
/* As of yet, do nothing with these */
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 'f': /* File Information */
|
||||
|
@ -363,6 +367,10 @@ bool display_custom_wps(int x_val, int y_val, bool do_scroll, char *wps_string)
|
|||
snprintf(tmpbuf, sizeof(tmpbuf), "%d",
|
||||
id3->filesize / 1024);
|
||||
break;
|
||||
case '\r':
|
||||
case '\n':
|
||||
/* As of yet, do nothing with these */
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 'p': /* Playlist/Song Information */
|
||||
|
@ -386,6 +394,10 @@ bool display_custom_wps(int x_val, int y_val, bool do_scroll, char *wps_string)
|
|||
id3->elapsed / 60000,
|
||||
id3->elapsed % 60000 / 1000);
|
||||
break;
|
||||
case '\r':
|
||||
case '\n':
|
||||
/* As of yet, do nothing with these */
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case '%': /* Displays % */
|
||||
|
@ -425,6 +437,10 @@ bool display_custom_wps(int x_val, int y_val, bool do_scroll, char *wps_string)
|
|||
break;
|
||||
}
|
||||
break;
|
||||
case '\r':
|
||||
case '\n':
|
||||
/* As of yet, do nothing with these */
|
||||
break;
|
||||
default:
|
||||
switch(con_flag)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue