From e2e7ecf350a4d085f6f58052f55ba29e8fe77718 Mon Sep 17 00:00:00 2001 From: Teruaki Kawashima Date: Wed, 5 Aug 2009 14:29:29 +0000 Subject: add playback control to more menu of plugins. although it doesn't make much sense for some plugins like dice as the menu is only shown when you start that plugin. change star plugin to go back to menu when exit game instead of closing plugin so that above change makes useful. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22171 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/rockpaint.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'apps/plugins/rockpaint.c') diff --git a/apps/plugins/rockpaint.c b/apps/plugins/rockpaint.c index 5388aceed5..458f6b552a 100644 --- a/apps/plugins/rockpaint.c +++ b/apps/plugins/rockpaint.c @@ -31,6 +31,7 @@ #include "plugin.h" #include "lib/pluginlib_bmp.h" #include "lib/rgb_hsv.h" +#include "lib/playback_control.h" PLUGIN_HEADER @@ -533,6 +534,7 @@ enum { MAIN_MENU_NEW, MAIN_MENU_LOAD, MAIN_MENU_SAVE, MAIN_MENU_BRUSH_SIZE, MAIN_MENU_BRUSH_SPEED, MAIN_MENU_COLOR, MAIN_MENU_GRID_SIZE, + MAIN_MENU_PLAYBACK_CONTROL, MAIN_MENU_EXIT, }; enum { @@ -551,7 +553,8 @@ enum { MENUITEM_STRINGLIST(main_menu, "RockPaint", NULL, "Resume", "New", "Load", "Save", "Brush Size", "Brush Speed", - "Choose Color", "Grid Size", "Exit"); + "Choose Color", "Grid Size", + "Playback Control", "Exit"); MENUITEM_STRINGLIST(size_menu, "Choose Size", NULL, "1x", "2x","4x", "8x"); MENUITEM_STRINGLIST(speed_menu, "Choose Speed", NULL, @@ -2527,6 +2530,10 @@ static void goto_menu(void) gridsize = gridsize_list[multi]; break; + case MAIN_MENU_PLAYBACK_CONTROL: + playback_control( NULL ); + break; + case MAIN_MENU_EXIT: restore_screen(); quit=true; -- cgit v1.2.3