From a7093bca30f4581de3829d034eca864d3fc02422 Mon Sep 17 00:00:00 2001 From: attila Date: Sun, 21 Sep 2003 11:27:11 +0000 Subject: dont fix things at the wrong place git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10906 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_gl2.c | 6 +++++- libvo/x11_common.c | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'libvo') diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c index d345fcf7f8..12b5e51c5c 100644 --- a/libvo/vo_gl2.c +++ b/libvo/vo_gl2.c @@ -565,9 +565,13 @@ static void drawTextureDisplay () 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 --git a/libvo/x11_common.c b/libvo/x11_common.c index 330e03b48e..7d4a4c0dca 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -700,7 +700,6 @@ int vo_x11_check_events(Display *mydisplay){ 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; -- cgit v1.2.3