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
This commit is contained in:
pontscho 2002-03-07 14:04:15 +00:00
parent 26973b9162
commit d401da7221
1 changed files with 9 additions and 1 deletions

View File

@ -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)