changeset 22249:3000f296fecc

Fix 10 in r22250, do not use screendimensions if not set
author reimar
date Sun, 18 Feb 2007 21:24:26 +0000
parents fb03fcc0817e
children 42b869296a06
files libvo/video_out.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/video_out.c	Sun Feb 18 20:23:25 2007 +0000
+++ b/libvo/video_out.c	Sun Feb 18 21:24:26 2007 +0000
@@ -332,6 +332,7 @@
   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 @@
   vo_dy += xinerama_y;
   vo_dwidth = d_width;
   vo_dheight = d_height;
+  }
 
   return vo->config(width, height, d_width, d_height, flags, title, format);
 }