diff options
author | nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-11 09:24:09 +0000 |
---|---|---|
committer | nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-11 09:24:09 +0000 |
commit | 25cc3ede41c33daa35b8d087d02baa352db25645 (patch) | |
tree | a4c8722d76c1e6eb601aa3abe0c07de72f41dcea /libvo/vo_xvidix.c | |
parent | fb104c64c3d3fa8970bd484d70cec7a1f1bb63d3 (diff) | |
download | mpv-25cc3ede41c33daa35b8d087d02baa352db25645.tar.bz2 mpv-25cc3ede41c33daa35b8d087d02baa352db25645.tar.xz |
Compute aspect ratio only once
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5048 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_xvidix.c')
-rw-r--r-- | libvo/vo_xvidix.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/libvo/vo_xvidix.c b/libvo/vo_xvidix.c index 2938b5acb6..c2b084221b 100644 --- a/libvo/vo_xvidix.c +++ b/libvo/vo_xvidix.c @@ -74,19 +74,6 @@ static uint32_t drwX, drwY, drwWidth, drwHeight, drwBorderWidth, static void set_window(int force_update,const vo_tune_info_t *info) { -#ifdef HAVE_NEW_GUI - if (vo_fs) - { - dwidth = vo_screenwidth; - dheight = vo_screenwidth * vo_dheight / vo_dwidth; - } - else - { - dwidth = vo_dwidth; - dheight = vo_dheight; - } -#endif - XGetGeometry(mDisplay, vo_window, &mRoot, &drwX, &drwY, &drwWidth, &drwHeight, &drwBorderWidth, &drwDepth); drwX = drwY = 0; @@ -98,11 +85,9 @@ static void set_window(int force_update,const vo_tune_info_t *info) drwcX, drwcY, drwX, drwY, drwWidth, drwHeight); /* following stuff copied from vo_xmga.c */ - aspect(&dwidth, &dheight, A_NOZOOM); #if X11_FULLSCREEN if (vo_fs) { - aspect(&dwidth, &dheight, A_ZOOM); drwX = (vo_screenwidth - (dwidth > vo_screenwidth ? vo_screenwidth : dwidth)) / 2; drwcX += drwX; drwY = (vo_screenheight - (dheight > vo_screenheight ? vo_screenheight : dheight)) / 2; @@ -287,7 +272,8 @@ if (vo_window == None) window_height = vo_screenheight; } #endif - + dwidth = d_width; + dheight = d_height; /* Make the window */ XGetWindowAttributes(mDisplay, DefaultRootWindow(mDisplay), &attribs); |