xinerama: allow to override xinerama screen_w/screen_h and setting size of screen where the window is placed

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3462 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2001-12-11 16:45:25 +00:00
parent eee729121e
commit 595ab25d21
1 changed files with 8 additions and 2 deletions

View File

@ -144,9 +144,15 @@ int vo_init( void )
{
XineramaScreenInfo *screens;
int num_screens;
int disp_screen = mScreen;
screens = XineramaQueryScreens(mDisplay, &num_screens);
vo_screenwidth=screens[0].width;
vo_screenheight=screens[0].height;
if (disp_screen > num_screens)
disp_screen = 0;
if (! vo_screenwidth)
vo_screenwidth=screens[disp_screen].width;
if (! vo_screenheight)
vo_screenheight=screens[disp_screen].height;
}
else
#endif