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 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libvo/vo_gl2.c') 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(); -- cgit v1.2.3