From d401da722147b43fc038a44310d48dc0961a0cd4 Mon Sep 17 00:00:00 2001 From: pontscho Date: Thu, 7 Mar 2002 14:04:15 +0000 Subject: [PATCH] vm pecs applied from daniel carter git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4978 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/x11_common.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 ) @@ -214,6 +214,14 @@ int vo_init( void ) XFree(screens); } 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)