changeset 10907:d4ec1e1c8dc8

make aspect recognize -noaspect
author attila
date Sun, 21 Sep 2003 11:56:09 +0000
parents e00bb9e4bac7
children dcca52fe32bd
files libvo/aspect.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/aspect.c	Sun Sep 21 11:40:13 2003 +0000
+++ b/libvo/aspect.c	Sun Sep 21 11:56:09 2003 +0000
@@ -17,6 +17,7 @@
 #include "video_out.h"
 
 float monitor_aspect=4.0/3.0;
+extern float movie_aspect;
 
 static struct {
   int orgw; // real width
@@ -59,6 +60,7 @@
 void aspect(int *srcw, int *srch, int zoom){
   int tmpw;
 
+  if(movie_aspect == 0) return; // the user doesnt want to fix aspect
 #ifdef ASPECT_DEBUG
   printf("aspect(0) fitin: %dx%d zoom: %d screenaspect: %.2f\n",aspdat.scrw,aspdat.scrh,
       zoom,monitor_aspect);