All pastes #371611 Raw Edit

Someone

public text v1 · immutable
#371611 ·published 2007-02-25 14:26 UTC
rendered paste body
Index: libvo/video_out.c
===================================================================
--- libvo/video_out.c   (revision 22339)
+++ libvo/video_out.c   (working copy)
@@ -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;