From 7d808a83e41156c99081d8df54fd6c2067bec8d0 Mon Sep 17 00:00:00 2001 From: Justin Heiner Date: Wed, 28 Aug 2002 18:03:20 +0000 Subject: 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 --- apps/wps.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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) { -- cgit v1.2.3