diff options
Diffstat (limited to 'apps/plugins/mpegplayer/video_out_rockbox.c')
-rw-r--r-- | apps/plugins/mpegplayer/video_out_rockbox.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/video_out_rockbox.c b/apps/plugins/mpegplayer/video_out_rockbox.c index f6e33e9d97..b37b75449b 100644 --- a/apps/plugins/mpegplayer/video_out_rockbox.c +++ b/apps/plugins/mpegplayer/video_out_rockbox.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include "mpeg2dec_config.h" | 24 | #include "mpeg2dec_config.h" |
25 | 25 | ||
26 | #include "plugin.h" | 26 | #include "plugin.h" |
27 | #include "gray.h" | ||
27 | 28 | ||
28 | extern struct plugin_api* rb; | 29 | extern struct plugin_api* rb; |
29 | 30 | ||
@@ -188,6 +189,7 @@ static void yuv_bitmap_part(unsigned char * const src[3], | |||
188 | 189 | ||
189 | void vo_draw_frame (uint8_t * const * buf) | 190 | void vo_draw_frame (uint8_t * const * buf) |
190 | { | 191 | { |
192 | #ifdef HAVE_LCD_COLOR | ||
191 | #ifdef SIMULATOR | 193 | #ifdef SIMULATOR |
192 | yuv_bitmap_part(buf,0,0,image_width, | 194 | yuv_bitmap_part(buf,0,0,image_width, |
193 | output_x,output_y,output_width,output_height); | 195 | output_x,output_y,output_width,output_height); |
@@ -197,6 +199,10 @@ void vo_draw_frame (uint8_t * const * buf) | |||
197 | 0,0,image_width, | 199 | 0,0,image_width, |
198 | output_x,output_y,output_width,output_height); | 200 | output_x,output_y,output_width,output_height); |
199 | #endif | 201 | #endif |
202 | #else | ||
203 | gray_ub_gray_bitmap_part(buf[0],0,0,image_width, | ||
204 | output_x,output_y,output_width,output_height); | ||
205 | #endif | ||
200 | } | 206 | } |
201 | 207 | ||
202 | #if LCD_WIDTH >= LCD_HEIGHT | 208 | #if LCD_WIDTH >= LCD_HEIGHT |