From f615e23d85b6646de26c9947b8e9d6e399e6100f Mon Sep 17 00:00:00 2001 From: sven Date: Fri, 19 Oct 2001 10:51:04 +0000 Subject: [PATCH] aspect changes integrated .., please check performance and conformance git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2279 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_gl2.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c index 5ead43a97a..24dcb4be2f 100644 --- a/libvo/vo_gl2.c +++ b/libvo/vo_gl2.c @@ -617,12 +617,18 @@ init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint3 if (X_already_started) return -1; if(!vo_init()) return -1; + aspect_save_orig(width,height); + aspect_save_prescale(d_width,d_height); + aspect_save_screenres(vo_screenwidth,vo_screenheight); + + aspect(&d_width,&d_height,A_NOZOOM); + X_already_started++; if( flags&0x01 ) { - isFullscreen = GL_TRUE; - aspect(&d_width,&d_height,vo_screenwidth,vo_screenheight); + isFullscreen = GL_TRUE; + aspect(&d_width,&d_height,A_ZOOM); hint.x = 0; hint.y = 0; hint.width = vo_screenwidth;