# HG changeset patch # User attila # Date 1042900409 0 # Node ID 3b328492f94dced80a06ef9c89c3dfd5a97502a3 # Parent c83c18f5896403a70d7399d9618132bc92dae66a xinerama fix part 1 xmga only for the moment, have to work on xvidix. diff -r c83c18f58964 -r 3b328492f94d libvo/mga_common.c --- a/libvo/mga_common.c Sat Jan 18 14:22:30 2003 +0000 +++ b/libvo/mga_common.c Sat Jan 18 14:33:29 2003 +0000 @@ -8,6 +8,9 @@ static void set_window( void ); /* forward declaration to kill warnings */ #ifdef VO_XMGA static void mDrawColorKey( void ); /* forward declaration to kill warnings */ +#ifdef HAVE_XINERAMA +extern int xinerama_screen; +#endif #endif static int mga_next_frame=0; @@ -472,13 +475,28 @@ /* find the screen we are on */ i = 0; - while(!(screens[i].x_org <= drwcX && screens[i].y_org <= drwcY && - screens[i].x_org + screens[i].width >= drwcX && - screens[i].y_org + screens[i].height >= drwcY )) + while(i= drwcX) || + (screens[i].y_org + screens[i].height >= drwcY))) { i++; } + if(i