1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-24 23:33:50 +02:00

Draw dotted lines on frequency selection.

Patch from Paul Licameli, but simplified.
This commit is contained in:
james.k.crook@gmail.com
2014-10-22 21:06:15 +00:00
parent 57544635f9
commit 3d7dd6c74a
3 changed files with 42 additions and 37 deletions

View File

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