summaryrefslogtreecommitdiff
path: root/apps/wps.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-06-23 01:31:26 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-06-23 01:31:26 +0000
commit6e0436f65cd461bb2b21c9a0178dfa6978213d27 (patch)
treefdd57985a0dd04959d3d7e6856a02ddab1b6dc51 /apps/wps.c
parent8b493fa6c4c2ef8245bf991daf350085d128729e (diff)
downloadrockbox-6e0436f65cd461bb2b21c9a0178dfa6978213d27.tar.gz
rockbox-6e0436f65cd461bb2b21c9a0178dfa6978213d27.zip
Henrik Backes patch for WPS and tag database context menus. Tag database context menus still don't work as expected. Hold Play/Select to pop up the menu.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6835 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/wps.c')
-rw-r--r--apps/wps.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/wps.c b/apps/wps.c
index 3934f2483f..d6b068cd58 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -50,6 +50,7 @@
50#include "bookmark.h" 50#include "bookmark.h"
51#include "misc.h" 51#include "misc.h"
52#include "sound.h" 52#include "sound.h"
53#include "onplay.h"
53 54
54#define FF_REWIND_MAX_PERCENT 3 /* cap ff/rewind step size at max % of file */ 55#define FF_REWIND_MAX_PERCENT 3 /* cap ff/rewind step size at max % of file */
55 /* 3% of 30min file == 54s step size */ 56 /* 3% of 30min file == 54s step size */
@@ -472,6 +473,12 @@ long wps_show(void)
472 473
473 switch(button) 474 switch(button)
474 { 475 {
476#ifdef WPS_CONTEXT
477 case WPS_CONTEXT:
478 onplay(id3->path, TREE_ATTR_MPA, CONTEXT_WPS);
479 restore = true;
480 break;
481#endif
475#ifdef WPS_RC_BROWSE 482#ifdef WPS_RC_BROWSE
476 case WPS_RC_BROWSE: 483 case WPS_RC_BROWSE:
477#endif 484#endif
@@ -503,6 +510,14 @@ long wps_show(void)
503#ifdef WPS_RC_PAUSE 510#ifdef WPS_RC_PAUSE
504 case WPS_RC_PAUSE: 511 case WPS_RC_PAUSE:
505#endif 512#endif
513#ifdef WPS_PAUSE_PRE
514 if ((lastbutton != WPS_PAUSE_PRE)
515#ifdef WPS_RC_PAUSE_PRE
516 && (lastbutton != WPS_RC_PAUSE_PRE)
517#endif
518 )
519 break;
520#endif
506 if ( paused ) 521 if ( paused )
507 { 522 {
508 paused = false; 523 paused = false;