Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/imbuf/intern/cspace.c')
-rw-r--r--source/blender/imbuf/intern/cspace.c8
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;
}
}