diff --git a/apps/plugins/rockpaint.c b/apps/plugins/rockpaint.c index 19d0860..5a67f5b 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 @@ -515,7 +516,7 @@ static void buffer_putsxyofs( fb_data *buf, int buf_width, int buf_height, struct menu_items { int value; - char label[16]; /* GRUIK ? */ + char label[17]; /* GRUIK ? */ }; #define MENU_ESC -1242 @@ -526,7 +527,7 @@ enum { MAIN_MENU_RESUME, 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_GRID_SIZE, MAIN_MENU_PLAYBACK_CONTROL, MAIN_MENU_EXIT, /* Select action menu */ SELECT_MENU_CUT, SELECT_MENU_COPY, SELECT_MENU_INVERT, @@ -548,6 +549,7 @@ static struct menu_items main_menu[]= { MAIN_MENU_BRUSH_SPEED, "Brush Speed" }, { MAIN_MENU_COLOR, "Choose Color" }, { MAIN_MENU_GRID_SIZE, "Grid Size" }, + { MAIN_MENU_PLAYBACK_CONTROL, "Playback Control" }, { MAIN_MENU_EXIT, "Exit" }, { MENU_END, "" } }; @@ -2599,6 +2601,11 @@ static void goto_menu(void) gridsize = multi; break; + case MAIN_MENU_PLAYBACK_CONTROL: + playback_control(NULL); + restore_screen(); + break; + case MAIN_MENU_EXIT: quit=true; return;