changeset 10905:f448dcd93e6d

dont fix things at the wrong place
author attila
date Sun, 21 Sep 2003 11:27:11 +0000
parents 407840681da1
children e00bb9e4bac7
files libvo/vo_gl2.c libvo/x11_common.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_gl2.c	Sun Sep 21 10:47:19 2003 +0000
+++ b/libvo/vo_gl2.c	Sun Sep 21 11:27:11 2003 +0000
@@ -565,9 +565,13 @@
 static void resize(int x,int y){
   printf("[gl2] Resize: %dx%d\n",x,y);
   if( vo_fs )
+  {
+	  aspect(&x, &y, A_ZOOM);
 	  glViewport( (vo_screenwidth-x)/2, (vo_screenheight-y)/2, x, y);
-  else 
+  } else { 
+	  aspect(&x, &y, A_NOZOOM);
 	  glViewport( 0, 0, x, y );
+  }
 
   glMatrixMode(GL_PROJECTION);
   glLoadIdentity();
--- a/libvo/x11_common.c	Sun Sep 21 10:47:19 2003 +0000
+++ b/libvo/x11_common.c	Sun Sep 21 11:27:11 2003 +0000
@@ -700,7 +700,6 @@
            if ( vo_window == None ) break;
            vo_dwidth=Event.xconfigure.width;
            vo_dheight=Event.xconfigure.height;
-	   if (vo_fs) aspect(&vo_dwidth, &vo_dheight, A_ZOOM);
 #if 0
 	   /* when resizing, x and y are zero :( */
 	   vo_dx=Event.xconfigure.x;