diff options
author | Kent Mein <mein@cs.umn.edu> | 2005-01-10 19:22:40 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2005-01-10 19:22:40 +0300 |
commit | 3c592ec3ad40cd3809890f3532875a609c635fb3 (patch) | |
tree | aef5e4a5a9779eda429b0ca4c3d21dc402ead55c /source/blender/imbuf/intern/cspace.c | |
parent | d1d8950eac2e0cbdbbf97e5b893f72a4fdca3b12 (diff) |
This is for bug # 2068
I standarized the returns on a failed opening of the output file for
the above image formats.
I also cleaned up a couple of warnings.
Kent
Diffstat (limited to 'source/blender/imbuf/intern/cspace.c')
-rw-r--r-- | source/blender/imbuf/intern/cspace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/imbuf/intern/cspace.c b/source/blender/imbuf/intern/cspace.c index 5cd2da5a998..f994755c823 100644 --- a/source/blender/imbuf/intern/cspace.c +++ b/source/blender/imbuf/intern/cspace.c @@ -74,15 +74,15 @@ static void cspfill(short *buf, short *fill, int x) } -static void cspadd(short *buf, short cont[][3], unsigned char *rect, int x) +static void cspadd(short *buf, short *cont, unsigned char *rect, int x) { short i; for (;x>0;x--){ i = *(rect); rect += 4; - buf[0] += cont[i][0]; - buf[1] += cont[i][1]; - buf[2] += cont[i][2]; + buf[0] += cont[i*3]; + buf[1] += cont[i*3 + 1]; + buf[2] += cont[i*3 + 2]; buf += 3; } } |