diff options
author | Teruaki Kawashima <teru@rockbox.org> | 2009-08-27 14:24:58 +0000 |
---|---|---|
committer | Teruaki Kawashima <teru@rockbox.org> | 2009-08-27 14:24:58 +0000 |
commit | 443f609be62b812878c7c9a832d8014ab56bbf6f (patch) | |
tree | a6fcc58959babc1b94881c6e2a2235f0f7679207 /apps/plugins/mpegplayer/mpegplayer.c | |
parent | ed940e883079a323b0764532a7444ad022685ae4 (diff) | |
download | rockbox-443f609be62b812878c7c9a832d8014ab56bbf6f.tar.gz rockbox-443f609be62b812878c7c9a832d8014ab56bbf6f.zip |
Rearange menu of mpegplayer. Add new menu with "settings" and "quit", and remove quit item from settings menu.
The setting menu was bit wierd as it had "quit" item at it's buttom.
Also, there are 2 almost same menu definitions in mpeg_menu and it doesn't looks good, imo.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22518 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/mpegplayer.c')
-rw-r--r-- | apps/plugins/mpegplayer/mpegplayer.c | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c index 47407cca8e..a66a588ace 100644 --- a/apps/plugins/mpegplayer/mpegplayer.c +++ b/apps/plugins/mpegplayer/mpegplayer.c | |||
@@ -1485,10 +1485,8 @@ static void button_loop(void) | |||
1485 | rb->lcd_clear_display(); | 1485 | rb->lcd_clear_display(); |
1486 | rb->lcd_update(); | 1486 | rb->lcd_update(); |
1487 | 1487 | ||
1488 | #if defined(HAVE_LCD_MODES) | 1488 | #if defined(HAVE_LCD_MODES) && (HAVE_LCD_MODES & LCD_MODE_YUV) |
1489 | #if (HAVE_LCD_MODES & LCD_MODE_YUV) | 1489 | rb->lcd_set_mode(LCD_MODE_YUV); |
1490 | rb->lcd_set_mode(LCD_MODE_YUV); | ||
1491 | #endif | ||
1492 | #endif | 1490 | #endif |
1493 | 1491 | ||
1494 | wvs_init(); | 1492 | wvs_init(); |
@@ -1569,13 +1567,11 @@ static void button_loop(void) | |||
1569 | stream_show_vo(false); | 1567 | stream_show_vo(false); |
1570 | wvs_backlight_brightness_video_mode(false); | 1568 | wvs_backlight_brightness_video_mode(false); |
1571 | 1569 | ||
1572 | #if defined(HAVE_LCD_MODES) | 1570 | #if defined(HAVE_LCD_MODES) && (HAVE_LCD_MODES & LCD_MODE_YUV) |
1573 | #if (HAVE_LCD_MODES & LCD_MODE_YUV) | 1571 | rb->lcd_set_mode(LCD_MODE_RGB565); |
1574 | rb->lcd_set_mode(LCD_MODE_RGB565); | ||
1575 | #endif | ||
1576 | #endif | 1572 | #endif |
1577 | 1573 | ||
1578 | result = mpeg_menu(0); | 1574 | result = mpeg_menu(); |
1579 | 1575 | ||
1580 | /* The menu can change the font, so restore */ | 1576 | /* The menu can change the font, so restore */ |
1581 | rb->lcd_setfont(FONT_SYSFIXED); | 1577 | rb->lcd_setfont(FONT_SYSFIXED); |
@@ -1587,10 +1583,8 @@ static void button_loop(void) | |||
1587 | break; | 1583 | break; |
1588 | 1584 | ||
1589 | default: | 1585 | default: |
1590 | #if defined(HAVE_LCD_MODES) | 1586 | #if defined(HAVE_LCD_MODES) && (HAVE_LCD_MODES & LCD_MODE_YUV) |
1591 | #if (HAVE_LCD_MODES & LCD_MODE_YUV) | 1587 | rb->lcd_set_mode(LCD_MODE_YUV); |
1592 | rb->lcd_set_mode(LCD_MODE_YUV); | ||
1593 | #endif | ||
1594 | #endif | 1588 | #endif |
1595 | /* If not stopped, show video again */ | 1589 | /* If not stopped, show video again */ |
1596 | if (state != STREAM_STOPPED) { | 1590 | if (state != STREAM_STOPPED) { |
@@ -1751,10 +1745,8 @@ enum plugin_status plugin_start(const void* parameter) | |||
1751 | } | 1745 | } |
1752 | } | 1746 | } |
1753 | 1747 | ||
1754 | #if defined(HAVE_LCD_MODES) | 1748 | #if defined(HAVE_LCD_MODES) && (HAVE_LCD_MODES & LCD_MODE_YUV) |
1755 | #if (HAVE_LCD_MODES & LCD_MODE_YUV) | 1749 | rb->lcd_set_mode(LCD_MODE_RGB565); |
1756 | rb->lcd_set_mode(LCD_MODE_RGB565); | ||
1757 | #endif | ||
1758 | #endif | 1750 | #endif |
1759 | 1751 | ||
1760 | stream_exit(); | 1752 | stream_exit(); |