diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-07 14:04:15 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-07 14:04:15 +0000 |
commit | d401da722147b43fc038a44310d48dc0961a0cd4 (patch) | |
tree | f1f2d09b7cb067a123d2dd5e3914aafcf5badd5c /libvo/x11_common.c | |
parent | 26973b9162bd448ae50a051d332a47847604b0da (diff) | |
download | mpv-d401da722147b43fc038a44310d48dc0961a0cd4.tar.bz2 mpv-d401da722147b43fc038a44310d48dc0961a0cd4.tar.xz |
vm pecs applied from daniel carter <hedonist@win.co.nz>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4978 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/x11_common.c')
-rw-r--r-- | libvo/x11_common.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c index d5ab2db3b5..fc8909769a 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -66,9 +66,9 @@ int xinerama_screen = 0; int xinerama_x = 0; int xinerama_y = 0; #endif - #ifdef HAVE_XF86VM XF86VidModeModeInfo **vidmodes=NULL; +XF86VidModeModeLine modeline; #endif void vo_hidecursor ( Display *disp , Window win ) @@ -215,6 +215,14 @@ int vo_init( void ) } else #endif +#ifdef HAVE_XF86VM + { + int clock; + XF86VidModeGetModeLine( mDisplay,mScreen,&clock ,&modeline ); + if ( !vo_screenwidth ) vo_screenwidth=modeline.hdisplay; + if ( !vo_screenheight ) vo_screenheight=modeline.vdisplay; + } +#endif { if (! vo_screenwidth) vo_screenwidth=DisplayWidth( mDisplay,mScreen ); |