Mercurial > mplayer.hg
changeset 2364:2f8f83ddbab3
-screenw/h patch by Tomi.Ollila@sonera.com
author | arpi |
---|---|
date | Mon, 22 Oct 2001 14:19:48 +0000 |
parents | e87cbb7db151 |
children | 93616490c0dd |
files | libvo/x11_common.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/x11_common.c Mon Oct 22 12:57:43 2001 +0000 +++ b/libvo/x11_common.c Mon Oct 22 14:19:48 2001 +0000 @@ -151,8 +151,10 @@ else #endif { - vo_screenwidth=DisplayWidth( mDisplay,mScreen ); - vo_screenheight=DisplayHeight( mDisplay,mScreen ); + if (! vo_screenwidth) + vo_screenwidth=DisplayWidth( mDisplay,mScreen ); + if (! vo_screenheight) + vo_screenheight=DisplayHeight( mDisplay,mScreen ); } // get color depth (from root window, or the best visual): XGetWindowAttributes(mDisplay, mRootWin, &attribs);