[Mplayer-cvslog] CVS: main/libvo x11_common.c,1.33,1.34

Arpi of Ize arpi at mplayer.dev.hu
Wed Oct 10 03:48:42 CEST 2001


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

Modified Files:
	x11_common.c 
Log Message:
Xinerama screen size fix by Lev Babiev <harley at hosers.org>

Index: x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- x11_common.c	29 Aug 2001 15:06:02 -0000	1.33
+++ x11_common.c	10 Oct 2001 01:48:23 -0000	1.34
@@ -21,6 +21,9 @@
 #include <X11/extensions/dpms.h>
 #endif
 
+#ifdef HAVE_XINERAMA
+#include <X11/extensions/Xinerama.h>
+#endif
 
 /*
  * If SCAN_VISUALS is defined, vo_init() scans all available TrueColor
@@ -135,9 +138,22 @@
   }
  mScreen=DefaultScreen( mDisplay );     // Screen ID.
  mRootWin=RootWindow( mDisplay,mScreen );// Root window ID.
+
+#ifdef HAVE_XINERAMA
+ if(XineramaIsActive(mDisplay))
+  {
+  XineramaScreenInfo *screens;
+  int num_screens;
+  screens = XineramaQueryScreens(mDisplay, &num_screens);
+  vo_screenwidth=screens[0].width;
+  vo_screenheight=screens[0].height;
+  }
+ else
+#endif
+ {
  vo_screenwidth=DisplayWidth( mDisplay,mScreen );
  vo_screenheight=DisplayHeight( mDisplay,mScreen );
-
+ }
  // get color depth (from root window, or the best visual):
  XGetWindowAttributes(mDisplay, mRootWin, &attribs);
  depth=attribs.depth;




More information about the MPlayer-cvslog mailing list