# HG changeset patch # User reimar # Date 1172414153 0 # Node ID 475c60dcd4594b034130d7c141e9acc3c4daf1ea # Parent db082b1a4e775b57e49f69c62fa7f70d77863656 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 diff -r db082b1a4e77 -r 475c60dcd459 libvo/video_out.c --- a/libvo/video_out.c Sun Feb 25 14:33:19 2007 +0000 +++ b/libvo/video_out.c Sun Feb 25 14:35:53 2007 +0000 @@ -330,9 +330,8 @@ panscan_init(); aspect_save_orig(width,height); aspect_save_prescale(d_width,d_height); - vo->control(VOCTRL_UPDATE_SCREENINFO, NULL); - if (vo_screenwidth && vo_screenheight) { + if (vo->control(VOCTRL_UPDATE_SCREENINFO, NULL) == VO_TRUE) { aspect(&d_width,&d_height,A_NOZOOM); vo_dx = (int)(vo_screenwidth - d_width) / 2; vo_dy = (int)(vo_screenheight - d_height) / 2;