diff options
| author | Karl Kurbjun <kkurbjun@gmail.com> | 2007-06-25 04:26:23 +0000 |
|---|---|---|
| committer | Karl Kurbjun <kkurbjun@gmail.com> | 2007-06-25 04:26:23 +0000 |
| commit | a28d74e71cacc947fcb7563f0f3ea8bba92bab0e (patch) | |
| tree | ca7aee6baa1530ae19ff034a536045eb11348386 /apps/plugins/rockboy/menu.c | |
| parent | 3490acbfbd835c3125cb590fa86d39d3df6895f9 (diff) | |
| download | rockbox-a28d74e71cacc947fcb7563f0f3ea8bba92bab0e.zip rockbox-a28d74e71cacc947fcb7563f0f3ea8bba92bab0e.tar.gz rockbox-a28d74e71cacc947fcb7563f0f3ea8bba92bab0e.tar.bz2 rockbox-a28d74e71cacc947fcb7563f0f3ea8bba92bab0e.tar.xz | |
Fix rockboy for the H100's. Thanks for fixing the HW codec players Peter
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13708 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockboy/menu.c')
| -rw-r--r-- | apps/plugins/rockboy/menu.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/apps/plugins/rockboy/menu.c b/apps/plugins/rockboy/menu.c index e358baf..803310f 100644 --- a/apps/plugins/rockboy/menu.c +++ b/apps/plugins/rockboy/menu.c @@ -325,14 +325,6 @@ static void do_opt_menu(void) { "On" , -1 }, }; - static const struct opt_items fullscreen[]= { - { "Scaled", -1 }, - { "Scaled - Maintain Ratio", -1 }, -#if (LCD_WIDTH>=160) && (LCD_HEIGHT>=144) - { "Unscaled", -1 }, -#endif - }; - static const struct opt_items frameskip[]= { { "0 Max", -1 }, { "1 Max", -1 }, @@ -343,7 +335,15 @@ static void do_opt_menu(void) { "6 Max", -1 }, }; -#ifdef HAVE_LCD_COLOR +#ifdef HAVE_LCD_COLOR + static const struct opt_items fullscreen[]= { + { "Scaled", -1 }, + { "Scaled - Maintain Ratio", -1 }, +#if (LCD_WIDTH>=160) && (LCD_HEIGHT>=144) + { "Unscaled", -1 }, +#endif + }; + static const struct opt_items palette[]= { { "Brown (Default)", -1 }, { "Gray", -1 }, @@ -369,17 +369,17 @@ static void do_opt_menu(void) { "Max Frameskip", NULL }, { "Sound" , NULL }, { "Stats" , NULL }, - { "Screen Size" , NULL }, - { "Screen Rotate" , NULL }, { "Set Keys (Buggy)", NULL }, #ifdef HAVE_LCD_COLOR + { "Screen Size" , NULL }, + { "Screen Rotate" , NULL }, { "Set Palette" , NULL }, #endif }; m = menu_init(rb,items, sizeof(items) / sizeof(*items), NULL, NULL, NULL, NULL); - options.dirty=1; /* Just assume that the settings have been changed */ + options.dirty=1; /* Assume that the settings have been changed */ while(!done) { @@ -400,19 +400,19 @@ static void do_opt_menu(void) case 2: /* Stats */ rb->set_option(items[2].desc, &options.showstats, INT, onoff, 2, NULL ); break; - case 3: /* Screen Size */ - rb->set_option(items[3].desc, &options.fullscreen, INT, fullscreen, + case 3: /* Keys */ + setupkeys(); + break; +#ifdef HAVE_LCD_COLOR + case 4: /* Screen Size */ + rb->set_option(items[4].desc, &options.fullscreen, INT, fullscreen, sizeof(fullscreen)/sizeof(*fullscreen), NULL ); setvidmode(); break; - case 4: /* Screen rotate */ - rb->set_option(items[4].desc, &options.rotate, INT, onoff, 2, NULL ); + case 5: /* Screen rotate */ + rb->set_option(items[5].desc, &options.rotate, INT, onoff, 2, NULL ); setvidmode(); break; - case 5: /* Keys */ - setupkeys(); - break; -#ifdef HAVE_LCD_COLOR case 6: /* Palette */ rb->set_option(items[6].desc, &options.pal, INT, palette, 17, NULL ); set_pal(); |