comparison libvo/video_out.c @ 22324:475c60dcd459

10, checked for the wrong thing. Do aspect scaling only in config_video_out if the vo responds that it supports this scheme by providing VOCTRL_UPDATE_SCREENINFO. Fixes vo_xmga
author reimar
date Sun, 25 Feb 2007 14:35:53 +0000
parents 3000f296fecc
children ddb9e516fab8
comparison
equal deleted inserted replaced
22323:db082b1a4e77 22324:475c60dcd459
328 uint32_t d_width, uint32_t d_height, uint32_t flags, 328 uint32_t d_width, uint32_t d_height, uint32_t flags,
329 char *title, uint32_t format) { 329 char *title, uint32_t format) {
330 panscan_init(); 330 panscan_init();
331 aspect_save_orig(width,height); 331 aspect_save_orig(width,height);
332 aspect_save_prescale(d_width,d_height); 332 aspect_save_prescale(d_width,d_height);
333 vo->control(VOCTRL_UPDATE_SCREENINFO, NULL); 333
334 334 if (vo->control(VOCTRL_UPDATE_SCREENINFO, NULL) == VO_TRUE) {
335 if (vo_screenwidth && vo_screenheight) {
336 aspect(&d_width,&d_height,A_NOZOOM); 335 aspect(&d_width,&d_height,A_NOZOOM);
337 vo_dx = (int)(vo_screenwidth - d_width) / 2; 336 vo_dx = (int)(vo_screenwidth - d_width) / 2;
338 vo_dy = (int)(vo_screenheight - d_height) / 2; 337 vo_dy = (int)(vo_screenheight - d_height) / 2;
339 geometry(&vo_dx, &vo_dy, &d_width, &d_height, 338 geometry(&vo_dx, &vo_dy, &d_width, &d_height,
340 vo_screenwidth, vo_screenheight); 339 vo_screenwidth, vo_screenheight);