mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 23:32:26 +00:00
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:
parent
eee729121e
commit
595ab25d21
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user