summaryrefslogtreecommitdiff
path: root/apps/plugins/minesweeper.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/minesweeper.c
parentaf59e2ac3114a16e25a76c611a179670b101c0b1 (diff)
downloadrockbox-15dbde1ab76cebd553e278a144e3e56d3b1f39d4.zip
rockbox-15dbde1ab76cebd553e278a144e3e56d3b1f39d4.tar.gz
rockbox-15dbde1ab76cebd553e278a144e3e56d3b1f39d4.tar.bz2
rockbox-15dbde1ab76cebd553e278a144e3e56d3b1f39d4.tar.xz
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/minesweeper.c')
-rw-r--r--apps/plugins/minesweeper.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/plugins/minesweeper.c b/apps/plugins/minesweeper.c
index 4adfc07..eeae12b 100644
--- a/apps/plugins/minesweeper.c
+++ b/apps/plugins/minesweeper.c
@@ -23,6 +23,8 @@
#ifdef HAVE_LCD_BITMAP
+#include "lib/playback_control.h"
+
PLUGIN_HEADER
/* what the minesweeper() function can return */
@@ -548,7 +550,7 @@ enum minesweeper_status menu( void )
MENUITEM_STRINGLIST( menu, "Minesweeper Menu", NULL, "Play Minesweeper",
"Mine Percentage", "Number of Rows",
- "Number of Columns", "Quit" );
+ "Number of Columns", "Playback Control", "Quit" );
#ifdef HAVE_LCD_COLOR
rb->lcd_set_foreground( rb->global_settings->fg_color );
@@ -579,6 +581,10 @@ enum minesweeper_status menu( void )
1, 1, MAX_WIDTH, NULL );
break;
+ case 4:
+ playback_control( NULL );
+ break;
+
default:
result = MINESWEEPER_QUIT; /* quit program */
menu_quit = true;