[Mplayer-cvslog] CVS: main/libvo x11_common.c,1.35,1.36

Alex Beregszaszi alex at mplayer.dev.hu
Tue Dec 11 17:45:27 CET 2001


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv2143

Modified Files:
	x11_common.c 
Log Message:
xinerama: allow to override xinerama screen_w/screen_h and setting size of screen where the window is placed

Index: x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- x11_common.c	22 Oct 2001 14:19:48 -0000	1.35
+++ x11_common.c	11 Dec 2001 16:45:25 -0000	1.36
@@ -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




More information about the MPlayer-cvslog mailing list