[MPlayer-cvslog] r24253 - trunk/libvo/mga_common.c

attila subversion at mplayerhq.hu
Tue Aug 28 11:15:41 CEST 2007


Author: attila
Date: Tue Aug 28 11:15:40 2007
New Revision: 24253

Log:
Assume first xinerama screen, in case xmga could
never figure out on which screen it is.


Modified:
   trunk/libvo/mga_common.c

Modified: trunk/libvo/mga_common.c
==============================================================================
--- trunk/libvo/mga_common.c	(original)
+++ trunk/libvo/mga_common.c	Tue Aug 28 11:15:40 2007
@@ -532,6 +532,15 @@ static void set_window( void ){
 				i = xinerama_screen;
 		 	}
 
+			if(xinerama_screen == -1)
+			{
+				// The default value of the xinerama_screen is
+				// still there. Which means we could never
+				// figure out on which screen we are.
+				// Choose the first screen as default
+				xinerama_screen = i = 0;
+			}
+
 		 	/* set drwcX and drwcY to the right values */
 		 	drwcX = drwcX - screens[i].x_org;
 		 	drwcY = drwcY - screens[i].y_org;



More information about the MPlayer-cvslog mailing list