diff options
Diffstat (limited to 'apps/plugins/mpegplayer/video_out_rockbox.c')
-rw-r--r-- | apps/plugins/mpegplayer/video_out_rockbox.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/mpegplayer/video_out_rockbox.c b/apps/plugins/mpegplayer/video_out_rockbox.c index c4a37a6558..627222ded9 100644 --- a/apps/plugins/mpegplayer/video_out_rockbox.c +++ b/apps/plugins/mpegplayer/video_out_rockbox.c | |||
@@ -213,7 +213,7 @@ void vo_draw_frame (uint8_t * const * buf) | |||
213 | #define SCREEN_HEIGHT LCD_WIDTH | 213 | #define SCREEN_HEIGHT LCD_WIDTH |
214 | #endif | 214 | #endif |
215 | 215 | ||
216 | void vo_setup(unsigned int width, unsigned int height, | 216 | void vo_setup(unsigned int display_width, unsigned int display_height, unsigned int width, unsigned int height, |
217 | unsigned int chroma_width, unsigned int chroma_height) | 217 | unsigned int chroma_width, unsigned int chroma_height) |
218 | { | 218 | { |
219 | image_width=width; | 219 | image_width=width; |
@@ -221,19 +221,19 @@ void vo_setup(unsigned int width, unsigned int height, | |||
221 | image_chroma_x=image_width/chroma_width; | 221 | image_chroma_x=image_width/chroma_width; |
222 | image_chroma_y=image_height/chroma_height; | 222 | image_chroma_y=image_height/chroma_height; |
223 | 223 | ||
224 | if (image_width >= SCREEN_WIDTH) { | 224 | if (display_width >= SCREEN_WIDTH) { |
225 | output_width = SCREEN_WIDTH; | 225 | output_width = SCREEN_WIDTH; |
226 | output_x = 0; | 226 | output_x = 0; |
227 | } else { | 227 | } else { |
228 | output_width = image_width; | 228 | output_width = display_width; |
229 | output_x = (SCREEN_WIDTH-image_width)/2; | 229 | output_x = (SCREEN_WIDTH-display_width)/2; |
230 | } | 230 | } |
231 | 231 | ||
232 | if (image_height >= SCREEN_HEIGHT) { | 232 | if (display_height >= SCREEN_HEIGHT) { |
233 | output_height = SCREEN_HEIGHT; | 233 | output_height = SCREEN_HEIGHT; |
234 | output_y = 0; | 234 | output_y = 0; |
235 | } else { | 235 | } else { |
236 | output_height = image_height; | 236 | output_height = display_height; |
237 | output_y = (SCREEN_HEIGHT-image_height)/2; | 237 | output_y = (SCREEN_HEIGHT-display_height)/2; |
238 | } | 238 | } |
239 | } | 239 | } |