diff options
Diffstat (limited to 'apps/plugins/rockboy/menu.c')
-rw-r--r-- | apps/plugins/rockboy/menu.c | 47 |
1 files changed, 43 insertions, 4 deletions
diff --git a/apps/plugins/rockboy/menu.c b/apps/plugins/rockboy/menu.c index 5f7f6b73c8..b49e480f41 100644 --- a/apps/plugins/rockboy/menu.c +++ b/apps/plugins/rockboy/menu.c | |||
@@ -13,6 +13,13 @@ | |||
13 | #define MENU_BUTTON_DOWN BUTTON_SCROLL_FWD | 13 | #define MENU_BUTTON_DOWN BUTTON_SCROLL_FWD |
14 | #define MENU_BUTTON_LEFT BUTTON_LEFT | 14 | #define MENU_BUTTON_LEFT BUTTON_LEFT |
15 | #define MENU_BUTTON_RIGHT BUTTON_RIGHT | 15 | #define MENU_BUTTON_RIGHT BUTTON_RIGHT |
16 | |||
17 | #elif (CONFIG_KEYPAD == IRIVER_H10_PAD) | ||
18 | #define MENU_BUTTON_UP BUTTON_SCROLL_UP | ||
19 | #define MENU_BUTTON_DOWN BUTTON_SCROLL_DOWN | ||
20 | #define MENU_BUTTON_LEFT BUTTON_LEFT | ||
21 | #define MENU_BUTTON_RIGHT BUTTON_RIGHT | ||
22 | |||
16 | #else | 23 | #else |
17 | #define MENU_BUTTON_UP BUTTON_UP | 24 | #define MENU_BUTTON_UP BUTTON_UP |
18 | #define MENU_BUTTON_DOWN BUTTON_DOWN | 25 | #define MENU_BUTTON_DOWN BUTTON_DOWN |
@@ -322,9 +329,9 @@ static void do_opt_menu(void) | |||
322 | }; | 329 | }; |
323 | 330 | ||
324 | static const struct opt_items fullscreen[]= { | 331 | static const struct opt_items fullscreen[]= { |
325 | { "Off", -1 }, | 332 | { "Unscaled", -1 }, |
326 | { "Fullscreen", -1 }, | 333 | { "Scaled", -1 }, |
327 | { "Full - Maintain Ratio", -1 }, | 334 | { "Scaled - Maintain Ratio", -1 }, |
328 | }; | 335 | }; |
329 | 336 | ||
330 | static const struct opt_items frameskip[]= { | 337 | static const struct opt_items frameskip[]= { |
@@ -333,13 +340,38 @@ static void do_opt_menu(void) | |||
333 | { "5 Max", -1 }, | 340 | { "5 Max", -1 }, |
334 | { "6 Max", -1 }, | 341 | { "6 Max", -1 }, |
335 | }; | 342 | }; |
343 | |||
344 | #ifdef HAVE_LCD_COLOR | ||
345 | static const struct opt_items palette[]= { | ||
346 | { "Brown (Default)", -1 }, | ||
347 | { "Gray", -1 }, | ||
348 | { "Light Gray", -1 }, | ||
349 | { "Multi-Color 1", -1 }, | ||
350 | { "Multi-Color 2", -1 }, | ||
351 | { "Adventure Island", -1 }, | ||
352 | { "Adventure Island 2", -1 }, | ||
353 | { "Balloon Kid", -1 }, | ||
354 | { "Batman", -1 }, | ||
355 | { "Batman: Return of Joker", -1 }, | ||
356 | { "Bionic Commando", -1 }, | ||
357 | { "Castlvania Adventure", -1 }, | ||
358 | { "Donkey Kong Land", -1 }, | ||
359 | { "Dr. Mario", -1 }, | ||
360 | { "Kirby", -1 }, | ||
361 | { "Metroid", -1 }, | ||
362 | { "Zelda", -1 }, | ||
363 | }; | ||
364 | #endif | ||
336 | 365 | ||
337 | static const struct menu_item items[] = { | 366 | static const struct menu_item items[] = { |
338 | { "Max Frameskip", NULL }, | 367 | { "Max Frameskip", NULL }, |
339 | { "Sound" , NULL }, | 368 | { "Sound" , NULL }, |
340 | { "Stats" , NULL }, | 369 | { "Stats" , NULL }, |
341 | { "Fullscreen" , NULL }, | 370 | { "Screen Options" , NULL }, |
342 | { "Set Keys (Buggy)", NULL }, | 371 | { "Set Keys (Buggy)", NULL }, |
372 | #ifdef HAVE_LCD_COLOR | ||
373 | { "Set Palette" , NULL }, | ||
374 | #endif | ||
343 | }; | 375 | }; |
344 | 376 | ||
345 | m = rb->menu_init(items, sizeof(items) / sizeof(*items), NULL, NULL, NULL, NULL); | 377 | m = rb->menu_init(items, sizeof(items) / sizeof(*items), NULL, NULL, NULL, NULL); |
@@ -359,6 +391,7 @@ static void do_opt_menu(void) | |||
359 | case 1: /* Sound */ | 391 | case 1: /* Sound */ |
360 | if(options.sound>1) options.sound=1; | 392 | if(options.sound>1) options.sound=1; |
361 | rb->set_option(items[1].desc, &options.sound, INT, onoff, 2, NULL ); | 393 | rb->set_option(items[1].desc, &options.sound, INT, onoff, 2, NULL ); |
394 | if(options.sound) sound_dirty(); | ||
362 | break; | 395 | break; |
363 | case 2: /* Stats */ | 396 | case 2: /* Stats */ |
364 | rb->set_option(items[2].desc, &options.showstats, INT, onoff, 2, NULL ); | 397 | rb->set_option(items[2].desc, &options.showstats, INT, onoff, 2, NULL ); |
@@ -370,6 +403,12 @@ static void do_opt_menu(void) | |||
370 | case 4: /* Keys */ | 403 | case 4: /* Keys */ |
371 | setupkeys(); | 404 | setupkeys(); |
372 | break; | 405 | break; |
406 | #ifdef HAVE_LCD_COLOR | ||
407 | case 5: /* Palette */ | ||
408 | rb->set_option(items[5].desc, &options.pal, INT, palette, 17, NULL ); | ||
409 | set_pal(); | ||
410 | break; | ||
411 | #endif | ||
373 | default: | 412 | default: |
374 | done=true; | 413 | done=true; |
375 | break; | 414 | break; |