# HG changeset patch # User pontscho # Date 1015509855 0 # Node ID 7b65a4f0b74e5af999e573ed49501cb090a55b23 # Parent 0780634e64b5a720aaf8e9f09105c85c38c05bb7 vm pecs applied from daniel carter diff -r 0780634e64b5 -r 7b65a4f0b74e libvo/x11_common.c --- a/libvo/x11_common.c Thu Mar 07 13:09:10 2002 +0000 +++ b/libvo/x11_common.c Thu Mar 07 14:04:15 2002 +0000 @@ -66,9 +66,9 @@ 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 @@ } 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 );