From baf7535196cf3d0f8e580df1316e482649db88c8 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 18 Feb 2007 21:24:26 +0000 Subject: 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 --- libvo/video_out.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libvo') diff --git a/libvo/video_out.c b/libvo/video_out.c index b8ec45ed14..fd32849753 100644 --- a/libvo/video_out.c +++ b/libvo/video_out.c @@ -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); vo->control(VOCTRL_UPDATE_SCREENINFO, NULL); + if (vo_screenwidth && vo_screenheight) { aspect(&d_width,&d_height,A_NOZOOM); vo_dx = (int)(vo_screenwidth - d_width) / 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_dwidth = d_width; vo_dheight = d_height; + } return vo->config(width, height, d_width, d_height, flags, title, format); } -- cgit v1.2.3