diff options
Diffstat (limited to 'apps/plugins/rockpaint.c')
-rw-r--r-- | apps/plugins/rockpaint.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/plugins/rockpaint.c b/apps/plugins/rockpaint.c index 2a848c2049..a4084a2ca7 100644 --- a/apps/plugins/rockpaint.c +++ b/apps/plugins/rockpaint.c | |||
@@ -551,12 +551,6 @@ MENUITEM_STRINGLIST(main_menu, "RockPaint", NULL, | |||
551 | "Brush Size", "Brush Speed", | 551 | "Brush Size", "Brush Speed", |
552 | "Choose Color", "Grid Size", | 552 | "Choose Color", "Grid Size", |
553 | "Playback Control", "Exit"); | 553 | "Playback Control", "Exit"); |
554 | MENUITEM_STRINGLIST(size_menu, "Choose Size", NULL, | ||
555 | "1x", "2x","4x", "8x"); | ||
556 | MENUITEM_STRINGLIST(speed_menu, "Choose Speed", NULL, | ||
557 | "1x", "2x","4x"); | ||
558 | MENUITEM_STRINGLIST(gridsize_menu, "Grid Size", NULL, | ||
559 | "No grid", "5px", "10px", "20px"); | ||
560 | MENUITEM_STRINGLIST(select_menu, "Select...", NULL, | 554 | MENUITEM_STRINGLIST(select_menu, "Select...", NULL, |
561 | "Cut", "Copy", | 555 | "Cut", "Copy", |
562 | "Invert", "Horizontal Flip", "Vertical Flip", | 556 | "Invert", "Horizontal Flip", "Vertical Flip", |
@@ -567,6 +561,12 @@ MENUITEM_STRINGLIST(text_menu, "Text", NULL, | |||
567 | "Preview", "Apply", "Cancel"); | 561 | "Preview", "Apply", "Cancel"); |
568 | static const int times_list[] = { 1, 2, 4, 8 }; | 562 | static const int times_list[] = { 1, 2, 4, 8 }; |
569 | static const int gridsize_list[] = { 0, 5, 10, 20 }; | 563 | static const int gridsize_list[] = { 0, 5, 10, 20 }; |
564 | static const struct opt_items times_options[] = { | ||
565 | { "1x", -1 }, { "2x", -1 }, { "4x", -1 }, { "8x", -1 } | ||
566 | }; | ||
567 | static const struct opt_items gridsize_options[] = { | ||
568 | { "No grid", -1 }, { "5px", -1 }, { "10px", -1 }, { "20px", -1 } | ||
569 | }; | ||
570 | 570 | ||
571 | static int draw_window( int height, int width, | 571 | static int draw_window( int height, int width, |
572 | int *top, int *left, | 572 | int *top, int *left, |
@@ -2502,7 +2502,7 @@ static void goto_menu(void) | |||
2502 | case MAIN_MENU_BRUSH_SIZE: | 2502 | case MAIN_MENU_BRUSH_SIZE: |
2503 | for(multi = 0; multi<4; multi++) | 2503 | for(multi = 0; multi<4; multi++) |
2504 | if(bsize == times_list[multi]) break; | 2504 | if(bsize == times_list[multi]) break; |
2505 | rb->do_menu( &size_menu, &multi, NULL, false ); | 2505 | rb->set_option( "Brush Size", &multi, INT, times_options, 4, NULL ); |
2506 | if( multi >= 0 ) | 2506 | if( multi >= 0 ) |
2507 | bsize = times_list[multi]; | 2507 | bsize = times_list[multi]; |
2508 | break; | 2508 | break; |
@@ -2510,7 +2510,7 @@ static void goto_menu(void) | |||
2510 | case MAIN_MENU_BRUSH_SPEED: | 2510 | case MAIN_MENU_BRUSH_SPEED: |
2511 | for(multi = 0; multi<3; multi++) | 2511 | for(multi = 0; multi<3; multi++) |
2512 | if(bspeed == times_list[multi]) break; | 2512 | if(bspeed == times_list[multi]) break; |
2513 | rb->do_menu( &speed_menu, &multi, NULL, false ); | 2513 | rb->set_option( "Brush Speed", &multi, INT, times_options, 3, NULL ); |
2514 | if( multi >= 0 ) | 2514 | if( multi >= 0 ) |
2515 | bspeed = times_list[multi]; | 2515 | bspeed = times_list[multi]; |
2516 | break; | 2516 | break; |
@@ -2522,7 +2522,7 @@ static void goto_menu(void) | |||
2522 | case MAIN_MENU_GRID_SIZE: | 2522 | case MAIN_MENU_GRID_SIZE: |
2523 | for(multi = 0; multi<4; multi++) | 2523 | for(multi = 0; multi<4; multi++) |
2524 | if(gridsize == gridsize_list[multi]) break; | 2524 | if(gridsize == gridsize_list[multi]) break; |
2525 | rb->do_menu( &gridsize_menu, &multi, NULL, false ); | 2525 | rb->set_option( "Grid Size", &multi, INT, gridsize_options, 4, NULL ); |
2526 | if( multi >= 0 ) | 2526 | if( multi >= 0 ) |
2527 | gridsize = gridsize_list[multi]; | 2527 | gridsize = gridsize_list[multi]; |
2528 | break; | 2528 | break; |