1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-21 14:50:06 +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;
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.
case ColorGradientEdge:
// fully dimmed
r = 0.0f;
g = 0.0f;
b = 0.0f;
r = 1.0f * grayscale;
g = 1.0f * grayscale;
b = 1.0f * grayscale;
break;
}
gradient_pre[selected][grayscale][i][0] = (unsigned char) (255 * r);