*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Sat, 26 Jul 2003 19:50:00 +0000
changeset 659e3d0517bf67e
parent 658 e71b7108d2d7
child 660 73440ac574a2
*** empty log message ***
src/video/x11/SDL_x11yuv.c
     1.1 --- a/src/video/x11/SDL_x11yuv.c	Wed Jul 23 05:30:08 2003 +0000
     1.2 +++ b/src/video/x11/SDL_x11yuv.c	Sat Jul 26 19:50:00 2003 +0000
     1.3 @@ -85,10 +85,11 @@
     1.4  	                                 RootWindow(GFX_Display, SDL_Screen),
     1.5  	                                 &adaptors, &ainfo)) ) {
     1.6  #ifdef USE_LAST_ADAPTOR
     1.7 -		for ( i=0; i < adaptors; ++i ) {
     1.8 +		for ( i=0; i < adaptors; ++i )
     1.9  #else
    1.10 -		for ( i=0; (i < adaptors) && (xv_port == -1); ++i ) {
    1.11 +		for ( i=0; (i < adaptors) && (xv_port == -1); ++i )
    1.12  #endif /* USE_LAST_ADAPTOR */
    1.13 +		{
    1.14  			/* Check to see if the visual can be used */
    1.15  			if ( BUGGY_XFREE86(<=, 4001) ) {
    1.16  				int visual_ok = 0;
    1.17 @@ -110,10 +111,11 @@
    1.18  				formats = SDL_NAME(XvListImageFormats)(GFX_Display,
    1.19  				              ainfo[i].base_id, &num_formats);
    1.20  #ifdef USE_LAST_ADAPTOR
    1.21 -				for ( j=0; j < num_formats; ++j ) {
    1.22 +				for ( j=0; j < num_formats; ++j )
    1.23  #else
    1.24 -				for ( j=0; (j < num_formats) && (xv_port == -1); ++j ) {
    1.25 +				for ( j=0; (j < num_formats) && (xv_port == -1); ++j )
    1.26  #endif /* USE_LAST_ADAPTOR */
    1.27 +				{
    1.28  					if ( (Uint32)formats[j].id == format ) {
    1.29  						for ( k=0; k < ainfo[i].num_ports; ++k ) {
    1.30  							if ( Success == SDL_NAME(XvGrabPort)(GFX_Display, ainfo[i].base_id+k, CurrentTime) ) {