1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-07 15:49:42 +02:00

Fix my regression in previous patch: Edges on grayscale should be white, not black.

This commit is contained in:
james.k.crook@gmail.com 2014-10-22 22:45:29 +00:00
parent 3d7dd6c74a
commit 421bc76856

View File

@ -627,13 +627,13 @@ void AColor::PreComputeGradient() {
b *= 0.5f; b *= 0.5f;
break; break;
// For now edge colour is just black. // For now edge colour is just black (or white if grey-scale)
// Later we might invert or something else funky. // Later we might invert or something else funky.
case ColorGradientEdge: case ColorGradientEdge:
// fully dimmed // fully dimmed
r = 0.0f; r = 1.0f * grayscale;
g = 0.0f; g = 1.0f * grayscale;
b = 0.0f; b = 1.0f * grayscale;
break; break;
} }
gradient_pre[selected][grayscale][i][0] = (unsigned char) (255 * r); gradient_pre[selected][grayscale][i][0] = (unsigned char) (255 * r);