changeset 24233:28dcfa978bad

Assume first xinerama screen, in case xmga could never figure out on which screen it is.
author attila
date Tue, 28 Aug 2007 09:15:40 +0000
parents d0290b80e612
children d0991c8e2fee
files libvo/mga_common.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/mga_common.c	Tue Aug 28 02:37:48 2007 +0000
+++ b/libvo/mga_common.c	Tue Aug 28 09:15:40 2007 +0000
@@ -532,6 +532,15 @@
 				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;