From f02eeb7172df032c19472ed5ff3bc7f33830a4ff Mon Sep 17 00:00:00 2001 From: arpi Date: Mon, 22 Oct 2001 14:19:48 +0000 Subject: [PATCH] -screenw/h patch by Tomi.Ollila@sonera.com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2365 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/x11_common.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 0cc54e5258..446c14cbcd 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -151,8 +151,10 @@ int vo_init( void ) 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);