summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Heiner <jheiner@rockbox.org>2002-08-28 18:03:20 +0000
committerJustin Heiner <jheiner@rockbox.org>2002-08-28 18:03:20 +0000
commit7d808a83e41156c99081d8df54fd6c2067bec8d0 (patch)
treeee629895944e40d6b741513c54b9f7bb5723e6fd
parenta9b2208723b01e4e1579f25e808bd8d85865a10c (diff)
downloadrockbox-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
-rw-r--r--apps/wps.c16
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)
321 case 'd': /* ID3 Album/Disc */ 321 case 'd': /* ID3 Album/Disc */
322 snprintf(tmpbuf, sizeof(tmpbuf), "%s", id3->album); 322 snprintf(tmpbuf, sizeof(tmpbuf), "%s", id3->album);
323 break; 323 break;
324 case '\r':
325 case '\n':
326 /* As of yet, do nothing with these */
327 break;
324 } 328 }
325 break; 329 break;
326 case 'f': /* File Information */ 330 case 'f': /* File Information */
@@ -363,6 +367,10 @@ bool display_custom_wps(int x_val, int y_val, bool do_scroll, char *wps_string)
363 snprintf(tmpbuf, sizeof(tmpbuf), "%d", 367 snprintf(tmpbuf, sizeof(tmpbuf), "%d",
364 id3->filesize / 1024); 368 id3->filesize / 1024);
365 break; 369 break;
370 case '\r':
371 case '\n':
372 /* As of yet, do nothing with these */
373 break;
366 } 374 }
367 break; 375 break;
368 case 'p': /* Playlist/Song Information */ 376 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)
386 id3->elapsed / 60000, 394 id3->elapsed / 60000,
387 id3->elapsed % 60000 / 1000); 395 id3->elapsed % 60000 / 1000);
388 break; 396 break;
397 case '\r':
398 case '\n':
399 /* As of yet, do nothing with these */
400 break;
389 } 401 }
390 break; 402 break;
391 case '%': /* Displays % */ 403 case '%': /* Displays % */
@@ -425,6 +437,10 @@ bool display_custom_wps(int x_val, int y_val, bool do_scroll, char *wps_string)
425 break; 437 break;
426 } 438 }
427 break; 439 break;
440 case '\r':
441 case '\n':
442 /* As of yet, do nothing with these */
443 break;
428 default: 444 default:
429 switch(con_flag) 445 switch(con_flag)
430 { 446 {