src/video/SDL_RLEaccel.c
branchgsoc2008_nds
changeset 2669 e27bdcc80744
parent 2328 91e601d9df8b
child 2798 5f3831f1c3ea
     1.1 --- a/src/video/SDL_RLEaccel.c	Wed Apr 23 06:27:10 2008 +0000
     1.2 +++ b/src/video/SDL_RLEaccel.c	Tue Jun 10 06:45:39 2008 +0000
     1.3 @@ -1154,8 +1154,7 @@
     1.4                              ofs += run;
     1.5                          } else if (!ofs)
     1.6                              goto done;
     1.7 -                    }
     1.8 -                    while (ofs < w);
     1.9 +                    } while (ofs < w);
    1.10  
    1.11                      /* skip padding */
    1.12                      srcbuf += (uintptr_t) srcbuf & 2;
    1.13 @@ -1168,10 +1167,8 @@
    1.14                          run = ((Uint16 *) srcbuf)[1];
    1.15                          srcbuf += 4 * (run + 1);
    1.16                          ofs += run;
    1.17 -                    }
    1.18 -                    while (ofs < w);
    1.19 -                }
    1.20 -                while (--vskip);
    1.21 +                    } while (ofs < w);
    1.22 +                } while (--vskip);
    1.23              } else {
    1.24                  /* the 32/32 interleaved format */
    1.25                  vskip <<= 1;    /* opaque and translucent have same format */
    1.26 @@ -1187,10 +1184,8 @@
    1.27                              ofs += run;
    1.28                          } else if (!ofs)
    1.29                              goto done;
    1.30 -                    }
    1.31 -                    while (ofs < w);
    1.32 -                }
    1.33 -                while (--vskip);
    1.34 +                    } while (ofs < w);
    1.35 +                } while (--vskip);
    1.36              }
    1.37          }
    1.38      }
    1.39 @@ -1567,8 +1562,7 @@
    1.40                      runstart += len;
    1.41                      run -= len;
    1.42                  }
    1.43 -            }
    1.44 -            while (x < w);
    1.45 +            } while (x < w);
    1.46  
    1.47              /* Make sure the next output address is 32-bit aligned */
    1.48              dst += (uintptr_t) dst & 2;
    1.49 @@ -1604,8 +1598,7 @@
    1.50                  }
    1.51                  if (!blankline)
    1.52                      lastline = dst;
    1.53 -            }
    1.54 -            while (x < w);
    1.55 +            } while (x < w);
    1.56  
    1.57              src += surface->pitch >> 2;
    1.58          }
    1.59 @@ -1771,8 +1764,7 @@
    1.60              }
    1.61              if (!blankline)
    1.62                  lastline = dst;
    1.63 -        }
    1.64 -        while (x < w);
    1.65 +        } while (x < w);
    1.66  
    1.67          srcbuf += surface->pitch;
    1.68      }
    1.69 @@ -1911,8 +1903,7 @@
    1.70                  ofs += run;
    1.71              } else if (!ofs)
    1.72                  return (SDL_TRUE);
    1.73 -        }
    1.74 -        while (ofs < w);
    1.75 +        } while (ofs < w);
    1.76  
    1.77          /* skip padding if needed */
    1.78          if (bpp == 2)
    1.79 @@ -1929,8 +1920,7 @@
    1.80                  srcbuf += uncopy_transl(dst + ofs, srcbuf, run, df, sf);
    1.81                  ofs += run;
    1.82              }
    1.83 -        }
    1.84 -        while (ofs < w);
    1.85 +        } while (ofs < w);
    1.86          dst += surface->pitch >> 2;
    1.87      }
    1.88      /* Make the compiler happy */