diff libvo/aspect.c @ 29515:d3700065005f

Forgotten changes to aspect code to handle -wid with -fs.
author reimar
date Thu, 27 Aug 2009 12:35:23 +0000
parents 7681eab10aea
children 87897065b7d7
line wrap: on
line diff
--- a/libvo/aspect.c	Thu Aug 27 12:03:02 2009 +0000
+++ b/libvo/aspect.c	Thu Aug 27 12:35:23 2009 +0000
@@ -123,6 +123,11 @@
 void aspect(int *srcw, int *srch, int zoom){
   int fitw = zoom ? aspdat.scrw : aspdat.prew;
   int fith = zoom ? aspdat.scrh : aspdat.preh;
+  if (zoom && WinID >= 0) zoom = A_WINZOOM;
+  if (zoom == A_WINZOOM) {
+    fitw = vo_dwidth;
+    fith = vo_dheight;
+  }
   if( !zoom && geometry_wh_changed ) {
 #ifdef ASPECT_DEBUG
     printf("aspect(0) no aspect forced!\n");