summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-22 14:19:48 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-22 14:19:48 +0000
commitf02eeb7172df032c19472ed5ff3bc7f33830a4ff (patch)
tree931a827f28946e278e57d7fd992c2c349412690a /libvo
parent7126a56170763da46d35cbfc0e73d8767d23891b (diff)
downloadmpv-f02eeb7172df032c19472ed5ff3bc7f33830a4ff.tar.bz2
mpv-f02eeb7172df032c19472ed5ff3bc7f33830a4ff.tar.xz
-screenw/h patch by Tomi.Ollila@sonera.com
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2365 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/x11_common.c6
1 files 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);