src/video/fbcon/SDL_fbvideo.c
branchgsoc2008_nds
changeset 2669 e27bdcc80744
parent 2120 2c835d58faad
child 2698 e1da92da346c
--- a/src/video/fbcon/SDL_fbvideo.c	Wed Apr 23 06:27:10 2008 +0000
+++ b/src/video/fbcon/SDL_fbvideo.c	Tue Jun 10 06:45:39 2008 +0000
@@ -323,15 +323,13 @@
             blank = 1;
         else
             blank = 0;
-    }
-    while (blank);
+    } while (blank);
     /* remove whitespace at the begining of the string */
     i = 0;
     do {
         line[i] = c[i];
         i++;
-    }
-    while (c[i] != 0);
+    } while (c[i] != 0);
     return 1;
 }
 
@@ -347,8 +345,7 @@
             return 0;
         if (SDL_strncmp(line, "geometry", 8) == 0)
             break;
-    }
-    while (1);
+    } while (1);
 
     SDL_sscanf(line, "geometry %d %d %d %d %d", &vinfo->xres, &vinfo->yres,
                &vinfo->xres_virtual, &vinfo->yres_virtual,
@@ -394,8 +391,7 @@
             if (SDL_strncmp(option, "true", 4) == 0)
                 vinfo->vmode |= FB_VMODE_DOUBLE;
         }
-    }
-    while (SDL_strncmp(line, "endmode", 7) != 0);
+    } while (SDL_strncmp(line, "endmode", 7) != 0);
 
     return 1;
 }