summaryrefslogtreecommitdiff
path: root/apps/plugins/bubbles.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-02-26 17:10:27 +0000
committerThomas Martitz <kugel@rockbox.org>2009-02-26 17:10:27 +0000
commit15dbde1ab76cebd553e278a144e3e56d3b1f39d4 (patch)
tree08ba4cee139b1486abb64b97ea6e58b86d3c5415 /apps/plugins/bubbles.c
parentaf59e2ac3114a16e25a76c611a179670b101c0b1 (diff)
downloadrockbox-15dbde1ab76cebd553e278a144e3e56d3b1f39d4.tar.gz
rockbox-15dbde1ab76cebd553e278a144e3e56d3b1f39d4.zip
Accept the first patch at FS#9953 - Add Playback Control to more plugins, by Joshua Simmons
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20111 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/bubbles.c')
-rw-r--r--apps/plugins/bubbles.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c
index c776b6768e..1d199e80b2 100644
--- a/apps/plugins/bubbles.c
+++ b/apps/plugins/bubbles.c
@@ -28,6 +28,7 @@
28#include "lib/xlcd.h" 28#include "lib/xlcd.h"
29#include "lib/pluginlib_actions.h" 29#include "lib/pluginlib_actions.h"
30#include "lib/fixedpoint.h" 30#include "lib/fixedpoint.h"
31#include "lib/playback_control.h"
31 32
32PLUGIN_HEADER 33PLUGIN_HEADER
33 34
@@ -2398,7 +2399,8 @@ static int bubbles(struct game_context* bb) {
2398 ********************/ 2399 ********************/
2399 MENUITEM_STRINGLIST(menu,"Bubbles Menu",NULL, 2400 MENUITEM_STRINGLIST(menu,"Bubbles Menu",NULL,
2400 "Start New Game", "Resume Game", 2401 "Start New Game", "Resume Game",
2401 "Level", "Display High Scores", "Quit"); 2402 "Level", "Display High Scores", "Playback Control",
2403 "Quit");
2402 while(!startgame){ 2404 while(!startgame){
2403 switch (rb->do_menu(&menu, NULL, NULL, false)) 2405 switch (rb->do_menu(&menu, NULL, NULL, false))
2404 { 2406 {
@@ -2421,7 +2423,10 @@ static int bubbles(struct game_context* bb) {
2421 case 3: /* High scores */ 2423 case 3: /* High scores */
2422 bubbles_displayscores(bb); 2424 bubbles_displayscores(bb);
2423 break; 2425 break;
2424 case 4: /* quit */ 2426 case 4: /* Playback Control */
2427 playback_control(NULL);
2428 break;
2429 case 5: /* quit */
2425 return BB_QUIT; 2430 return BB_QUIT;
2426 case MENU_ATTACHED_USB: 2431 case MENU_ATTACHED_USB:
2427 bubbles_callback(bb); 2432 bubbles_callback(bb);