# HG changeset patch # User attila # Date 1064143631 0 # Node ID f448dcd93e6d8fe15d6134536db1502a8ccd4022 # Parent 407840681da16fea1a643869324627e558012e4a dont fix things at the wrong place diff -r 407840681da1 -r f448dcd93e6d libvo/vo_gl2.c --- 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(); diff -r 407840681da1 -r f448dcd93e6d libvo/x11_common.c --- 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;