Possible fix for bug #3400

This commit is contained in:
2005-11-29 21:07:17 +00:00
parent 0864011d27
commit 36cc4a632f

View File

@@ -1486,11 +1486,13 @@ void RVIsolateHighlights (unsigned char* in, unsigned char* out, int width, int
out[index+GlowR]=MIN2(255*clamp, (in[index+GlowR]*boost*intensity)/255); out[index+GlowR]=MIN2(255*clamp, (in[index+GlowR]*boost*intensity)/255);
out[index+GlowG]=MIN2(255*clamp, (in[index+GlowG]*boost*intensity)/255); out[index+GlowG]=MIN2(255*clamp, (in[index+GlowG]*boost*intensity)/255);
out[index+GlowB]=MIN2(255*clamp, (in[index+GlowB]*boost*intensity)/255); out[index+GlowB]=MIN2(255*clamp, (in[index+GlowB]*boost*intensity)/255);
out[index+GlowA]=in[index+GlowA];
} }
else{ else{
out[index+GlowR]=0; out[index+GlowR]=0;
out[index+GlowG]=0; out[index+GlowG]=0;
out[index+GlowB]=0; out[index+GlowB]=0;
out[index+GlowA]=0;
} }
} }
} }