Minor fix. gsoc2009_unit_tests
authorEdgar Simo <bobbens@gmail.com>
Sun, 12 Jul 2009 11:18:59 +0000
branchgsoc2009_unit_tests
changeset 3729 b7590cd5969d
parent 3728 97e9704fc267
child 3730 dafd796f0c95
Minor fix.
test/automated/surface/surface.c
--- a/test/automated/surface/surface.c	Sat Jul 11 19:21:48 2009 +0000
+++ b/test/automated/surface/surface.c	Sun Jul 12 11:18:59 2009 +0000
@@ -129,11 +129,12 @@
     * X.X.X.X.. */
    for (y=0; y<3; y++) {
       x = y % 2;
-      for (; x<80; x+=2)
+      for (; x<80; x+=2) {
          ret = SDL_DrawPoint( testsur, x, y,
                SDL_MapRGB( testsur->format, x*y, x*y/2, x*y/3 ) );
-      if (SDL_ATassert( "SDL_DrawPoint", ret == 0))
-         return;
+         if (SDL_ATassert( "SDL_DrawPoint", ret == 0))
+            return;
+      }
    }
 
    /* Draw some lines. */