Fix 10 in r22250, do not use screendimensions if not set

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22267 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-02-18 21:24:26 +00:00
parent 3c32a11ae5
commit baf7535196
1 changed files with 2 additions and 0 deletions

View File

@ -332,6 +332,7 @@ int config_video_out(vo_functions_t *vo, uint32_t width, uint32_t height,
aspect_save_prescale(d_width,d_height); aspect_save_prescale(d_width,d_height);
vo->control(VOCTRL_UPDATE_SCREENINFO, NULL); vo->control(VOCTRL_UPDATE_SCREENINFO, NULL);
if (vo_screenwidth && vo_screenheight) {
aspect(&d_width,&d_height,A_NOZOOM); aspect(&d_width,&d_height,A_NOZOOM);
vo_dx = (int)(vo_screenwidth - d_width) / 2; vo_dx = (int)(vo_screenwidth - d_width) / 2;
vo_dy = (int)(vo_screenheight - d_height) / 2; vo_dy = (int)(vo_screenheight - d_height) / 2;
@ -341,6 +342,7 @@ int config_video_out(vo_functions_t *vo, uint32_t width, uint32_t height,
vo_dy += xinerama_y; vo_dy += xinerama_y;
vo_dwidth = d_width; vo_dwidth = d_width;
vo_dheight = d_height; vo_dheight = d_height;
}
return vo->config(width, height, d_width, d_height, flags, title, format); return vo->config(width, height, d_width, d_height, flags, title, format);
} }