Index: libvo/x11_common.c =================================================================== RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v retrieving revision 1.54 diff -u -r1.54 x11_common.c --- libvo/x11_common.c 7 Mar 2002 11:57:33 -0000 1.54 +++ libvo/x11_common.c 7 Mar 2002 13:19:24 -0000 @@ -69,6 +69,7 @@ #ifdef HAVE_XF86VM XF86VidModeModeInfo **vidmodes=NULL; +XF86VidModeModeLine modeline; #endif void vo_hidecursor ( Display *disp , Window win ) @@ -214,6 +215,17 @@ 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)