From ad666c747c2e5cb98fba2a1256aad74a815e02b8 Mon Sep 17 00:00:00 2001 From: attila Date: Sat, 18 Jan 2003 15:05:06 +0000 Subject: xinerama fix part 1 - count your paranthesis xvidix should now work too git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8992 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_xvidix.c | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/libvo/vo_xvidix.c b/libvo/vo_xvidix.c index 286e0a193d..7e7dea5e72 100644 --- a/libvo/vo_xvidix.c +++ b/libvo/vo_xvidix.c @@ -76,6 +76,10 @@ static uint32_t drwX, drwY, drwWidth, drwHeight, drwBorderWidth, extern void set_video_eq( int cap ); +#ifdef HAVE_XINERAMA +extern int xinerama_screen; +#endif + static void set_window(int force_update) { Window mRoot; @@ -127,10 +131,26 @@ static void set_window(int force_update) screens = XineramaQueryScreens(mDisplay, &num_screens); /* find the screen we are on */ - while ((screens[i].x_org <= drwcX) || (screens[i].y_org <= drwcY) || + while (i= drwcX) || - (screens[i].y_org + screens[i].height >= drwcY)) - i++; + (screens[i].y_org + screens[i].height >= drwcY))) + { + i++; + } + + if(i