summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorsven <sven@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-19 10:51:04 +0000
committersven <sven@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-19 10:51:04 +0000
commitf615e23d85b6646de26c9947b8e9d6e399e6100f (patch)
treee3aec28e53d61ba5db0a23393ed944d0b34fe601 /libvo
parenta8785016e16e2dc1c6d8d8ff27a8d5f5e0815e3e (diff)
downloadmpv-f615e23d85b6646de26c9947b8e9d6e399e6100f.tar.bz2
mpv-f615e23d85b6646de26c9947b8e9d6e399e6100f.tar.xz
aspect changes integrated .., please check performance and conformance
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2279 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl2.c10
1 files 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;