Mercurial > mplayer.hg
changeset 5047:2c0b97e0293e
Compute aspect ratio only once
author | nick |
---|---|
date | Mon, 11 Mar 2002 09:24:09 +0000 |
parents | b3bd4b29a03b |
children | 2f53b53385e2 |
files | libvo/vo_xvidix.c |
diffstat | 1 files changed, 2 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_xvidix.c Mon Mar 11 09:19:15 2002 +0000 +++ b/libvo/vo_xvidix.c Mon Mar 11 09:24:09 2002 +0000 @@ -74,19 +74,6 @@ 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 @@ 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 @@ window_height = vo_screenheight; } #endif - + dwidth = d_width; + dheight = d_height; /* Make the window */ XGetWindowAttributes(mDisplay, DefaultRootWindow(mDisplay), &attribs);