Mercurial > mplayer.hg
changeset 3461:6b4ff1eb79bf
xinerama: allow to override xinerama screen_w/screen_h and setting size of screen where the window is placed
author | alex |
---|---|
date | Tue, 11 Dec 2001 16:45:25 +0000 |
parents | fac2acb51706 |
children | 44a600d7f8da |
files | libvo/x11_common.c |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/x11_common.c Tue Dec 11 16:08:36 2001 +0000 +++ b/libvo/x11_common.c Tue Dec 11 16:45:25 2001 +0000 @@ -144,9 +144,15 @@ { 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