changeset 659:e3d0517bf67e

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Sat, 26 Jul 2003 19:50:00 +0000
parents e71b7108d2d7
children 73440ac574a2
files src/video/x11/SDL_x11yuv.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/x11/SDL_x11yuv.c	Wed Jul 23 05:30:08 2003 +0000
+++ b/src/video/x11/SDL_x11yuv.c	Sat Jul 26 19:50:00 2003 +0000
@@ -85,10 +85,11 @@
 	                                 RootWindow(GFX_Display, SDL_Screen),
 	                                 &adaptors, &ainfo)) ) {
 #ifdef USE_LAST_ADAPTOR
-		for ( i=0; i < adaptors; ++i ) {
+		for ( i=0; i < adaptors; ++i )
 #else
-		for ( i=0; (i < adaptors) && (xv_port == -1); ++i ) {
+		for ( i=0; (i < adaptors) && (xv_port == -1); ++i )
 #endif /* USE_LAST_ADAPTOR */
+		{
 			/* Check to see if the visual can be used */
 			if ( BUGGY_XFREE86(<=, 4001) ) {
 				int visual_ok = 0;
@@ -110,10 +111,11 @@
 				formats = SDL_NAME(XvListImageFormats)(GFX_Display,
 				              ainfo[i].base_id, &num_formats);
 #ifdef USE_LAST_ADAPTOR
-				for ( j=0; j < num_formats; ++j ) {
+				for ( j=0; j < num_formats; ++j )
 #else
-				for ( j=0; (j < num_formats) && (xv_port == -1); ++j ) {
+				for ( j=0; (j < num_formats) && (xv_port == -1); ++j )
 #endif /* USE_LAST_ADAPTOR */
+				{
 					if ( (Uint32)formats[j].id == format ) {
 						for ( k=0; k < ainfo[i].num_ports; ++k ) {
 							if ( Success == SDL_NAME(XvGrabPort)(GFX_Display, ainfo[i].base_id+k, CurrentTime) ) {