Mercurial > sdl-ios-xcode
diff src/video/SDL_RLEaccel.c @ 2669:e27bdcc80744 gsoc2008_nds
First commit. Added header configs for DS as well as a Makefile. Initial work on framebuffer video driver, currently not functioning as desired.
author | Darren Alton <dalton@stevens.edu> |
---|---|
date | Tue, 10 Jun 2008 06:45:39 +0000 |
parents | 91e601d9df8b |
children | 5f3831f1c3ea |
line wrap: on
line diff
--- a/src/video/SDL_RLEaccel.c Wed Apr 23 06:27:10 2008 +0000 +++ b/src/video/SDL_RLEaccel.c Tue Jun 10 06:45:39 2008 +0000 @@ -1154,8 +1154,7 @@ ofs += run; } else if (!ofs) goto done; - } - while (ofs < w); + } while (ofs < w); /* skip padding */ srcbuf += (uintptr_t) srcbuf & 2; @@ -1168,10 +1167,8 @@ run = ((Uint16 *) srcbuf)[1]; srcbuf += 4 * (run + 1); ofs += run; - } - while (ofs < w); - } - while (--vskip); + } while (ofs < w); + } while (--vskip); } else { /* the 32/32 interleaved format */ vskip <<= 1; /* opaque and translucent have same format */ @@ -1187,10 +1184,8 @@ ofs += run; } else if (!ofs) goto done; - } - while (ofs < w); - } - while (--vskip); + } while (ofs < w); + } while (--vskip); } } } @@ -1567,8 +1562,7 @@ runstart += len; run -= len; } - } - while (x < w); + } while (x < w); /* Make sure the next output address is 32-bit aligned */ dst += (uintptr_t) dst & 2; @@ -1604,8 +1598,7 @@ } if (!blankline) lastline = dst; - } - while (x < w); + } while (x < w); src += surface->pitch >> 2; } @@ -1771,8 +1764,7 @@ } if (!blankline) lastline = dst; - } - while (x < w); + } while (x < w); srcbuf += surface->pitch; } @@ -1911,8 +1903,7 @@ ofs += run; } else if (!ofs) return (SDL_TRUE); - } - while (ofs < w); + } while (ofs < w); /* skip padding if needed */ if (bpp == 2) @@ -1929,8 +1920,7 @@ srcbuf += uncopy_transl(dst + ofs, srcbuf, run, df, sf); ofs += run; } - } - while (ofs < w); + } while (ofs < w); dst += surface->pitch >> 2; } /* Make the compiler happy */