style cleanup

This commit is contained in:
2012-03-12 23:56:11 +00:00
parent caac81d75f
commit b457c7fdbd
7 changed files with 333 additions and 323 deletions

View File

@@ -128,7 +128,7 @@ static short makebody_tga(ImBuf * ibuf, FILE * file, int (*out)(unsigned int, FI
copy = last^this;
while (bytes > 0){
if (copy){
do{
do {
last = this;
this = *rect++;
if (last == this){
@@ -137,7 +137,7 @@ static short makebody_tga(ImBuf * ibuf, FILE * file, int (*out)(unsigned int, FI
break;
}
}
}while (--bytes != 0);
} while (--bytes != 0);
copy = rect-rectstart;
copy --;
@@ -151,9 +151,9 @@ static short makebody_tga(ImBuf * ibuf, FILE * file, int (*out)(unsigned int, FI
if (copy>=128) last = 128;
copy -= last;
if (fputc(last-1,file) == EOF) return(0);
do{
do {
if (out(*rect++,file) == EOF) return(0);
}while(--last != 0);
} while(--last != 0);
}
rectstart = rect;
rect = temp;