diff options
author | Justin Heiner <jheiner@rockbox.org> | 2002-08-28 18:03:20 +0000 |
---|---|---|
committer | Justin Heiner <jheiner@rockbox.org> | 2002-08-28 18:03:20 +0000 |
commit | 7d808a83e41156c99081d8df54fd6c2067bec8d0 (patch) | |
tree | ee629895944e40d6b741513c54b9f7bb5723e6fd /apps | |
parent | a9b2208723b01e4e1579f25e808bd8d85865a10c (diff) | |
download | rockbox-7d808a83e41156c99081d8df54fd6c2067bec8d0.tar.gz rockbox-7d808a83e41156c99081d8df54fd6c2067bec8d0.zip |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/wps.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/wps.c b/apps/wps.c index 37f849de91..38e9aa43af 100644 --- a/apps/wps.c +++ b/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) { |