diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-24 00:18:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-24 00:18:09 +0400 |
commit | 7ff77ed4ea7c6d8fb8b2e75320175b9cbd6ff20a (patch) | |
tree | fcdb22c3f2fa64e08a6cf8182b80405ab0e141f9 /source/blender/blenkernel/intern/seqeffects.c | |
parent | 402a9d59383d68bff72b3c9da3e53f3e5abcd578 (diff) |
code cleanup: use zero_v3
Diffstat (limited to 'source/blender/blenkernel/intern/seqeffects.c')
-rw-r--r-- | source/blender/blenkernel/intern/seqeffects.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/blenkernel/intern/seqeffects.c b/source/blender/blenkernel/intern/seqeffects.c index b24b885c001..f42220780b9 100644 --- a/source/blender/blenkernel/intern/seqeffects.c +++ b/source/blender/blenkernel/intern/seqeffects.c @@ -2205,8 +2205,8 @@ static void RVBlurBitmap2_byte ( unsigned char* map, int width,int height, for (x=0;x<halfWidth;x++) { index=(x+y*width)*4; fx=0; - curColor[0]=curColor[1]=curColor[2]=0; - curColor2[0]=curColor2[1]=curColor2[2]=0; + zero_v3(curColor); + zero_v3(curColor2); for (i=x-halfWidth;i<x+halfWidth;i++) { if ((i>=0)&&(i<width)) { @@ -2236,7 +2236,7 @@ static void RVBlurBitmap2_byte ( unsigned char* map, int width,int height, for (x=halfWidth;x<width-halfWidth;x++) { index=(x+y*width)*4; fx=0; - curColor[0]=curColor[1]=curColor[2]=0; + zero_v3(curColor); for (i=x-halfWidth;i<x+halfWidth;i++) { curColor[0]+=map[(i+y*width)*4+GlowR]*filter[fx]; curColor[1]+=map[(i+y*width)*4+GlowG]*filter[fx]; @@ -2259,8 +2259,8 @@ static void RVBlurBitmap2_byte ( unsigned char* map, int width,int height, for (y=0;y<halfWidth;y++) { index=(x+y*width)*4; fy=0; - curColor[0]=curColor[1]=curColor[2]=0; - curColor2[0]=curColor2[1]=curColor2[2]=0; + zero_v3(curColor); + zero_v3(curColor2); for (i=y-halfWidth;i<y+halfWidth;i++) { if ((i>=0)&&(i<height)) { /* Bottom */ @@ -2289,7 +2289,7 @@ static void RVBlurBitmap2_byte ( unsigned char* map, int width,int height, for (y=halfWidth;y<height-halfWidth;y++) { index=(x+y*width)*4; fy=0; - curColor[0]=curColor[1]=curColor[2]=0; + zero_v3(curColor); for (i=y-halfWidth;i<y+halfWidth;i++) { curColor[0]+=map[(x+i*width)*4+GlowR]*filter[fy]; curColor[1]+=map[(x+i*width)*4+GlowG]*filter[fy]; @@ -2406,7 +2406,7 @@ static void RVBlurBitmap2_float ( float* map, int width,int height, for (x=halfWidth;x<width-halfWidth;x++) { index=(x+y*width)*4; fx=0; - curColor[0]=curColor[1]=curColor[2]=0; + zero_v3(curColor); for (i=x-halfWidth;i<x+halfWidth;i++) { curColor[0]+=map[(i+y*width)*4+GlowR]*filter[fx]; curColor[1]+=map[(i+y*width)*4+GlowG]*filter[fx]; @@ -2429,8 +2429,8 @@ static void RVBlurBitmap2_float ( float* map, int width,int height, for (y=0;y<halfWidth;y++) { index=(x+y*width)*4; fy=0; - curColor[0]=curColor[1]=curColor[2]=0; - curColor2[0]=curColor2[1]=curColor2[2]=0; + zero_v3(curColor); + zero_v3(curColor2); for (i=y-halfWidth;i<y+halfWidth;i++) { if ((i>=0)&&(i<height)) { /* Bottom */ @@ -2459,7 +2459,7 @@ static void RVBlurBitmap2_float ( float* map, int width,int height, for (y=halfWidth;y<height-halfWidth;y++) { index=(x+y*width)*4; fy=0; - curColor[0]=curColor[1]=curColor[2]=0; + zero_v3(curColor); for (i=y-halfWidth;i<y+halfWidth;i++) { curColor[0]+=map[(x+i*width)*4+GlowR]*filter[fy]; curColor[1]+=map[(x+i*width)*4+GlowG]*filter[fy]; |