summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-04-01 05:34:48 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-04-01 05:34:48 +0000
commite64b87ddb506d5248d36735280635e1ef8870ce0 (patch)
tree38d219e23f6289d316c55420cc0146f4e0fb3c84 /apps
parent8580674b10072b43531660652ff8103c6a980157 (diff)
Fix warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20601 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/mpegplayer/mpegplayer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c
index 055c1b2b84..e9e742a6a5 100644
--- a/apps/plugins/mpegplayer/mpegplayer.c
+++ b/apps/plugins/mpegplayer/mpegplayer.c
@@ -1459,9 +1459,11 @@ static void button_loop(void)
rb->lcd_clear_display();
rb->lcd_update();
+#if defined(HAVE_LCD_MODES)
#if (HAVE_LCD_MODES & LCD_MODE_YUV)
rb->lcd_set_mode(LCD_MODE_YUV);
#endif
+#endif
wvs_init();
@@ -1541,9 +1543,11 @@ static void button_loop(void)
stream_show_vo(false);
wvs_backlight_brightness_video_mode(false);
+#if defined(HAVE_LCD_MODES)
#if (HAVE_LCD_MODES & LCD_MODE_YUV)
rb->lcd_set_mode(LCD_MODE_RGB565);
#endif
+#endif
result = mpeg_menu(0);
@@ -1557,9 +1561,11 @@ static void button_loop(void)
break;
default:
+#if defined(HAVE_LCD_MODES)
#if (HAVE_LCD_MODES & LCD_MODE_YUV)
rb->lcd_set_mode(LCD_MODE_YUV);
#endif
+#endif
/* If not stopped, show video again */
if (state != STREAM_STOPPED) {
wvs_show(WVS_SHOW);
@@ -1719,9 +1725,11 @@ enum plugin_status plugin_start(const void* parameter)
}
}
+#if defined(HAVE_LCD_MODES)
#if (HAVE_LCD_MODES & LCD_MODE_YUV)
rb->lcd_set_mode(LCD_MODE_RGB565);
#endif
+#endif
stream_exit();