diff options
Diffstat (limited to 'source/blender/imbuf/intern/targa.c')
-rw-r--r-- | source/blender/imbuf/intern/targa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/imbuf/intern/targa.c b/source/blender/imbuf/intern/targa.c index 895f922a0da..b5552a174a9 100644 --- a/source/blender/imbuf/intern/targa.c +++ b/source/blender/imbuf/intern/targa.c @@ -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; |