1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-15 23:21:12 +02:00

Misc. cleanup

This commit is contained in:
Pokechu22
2019-06-29 14:54:16 -07:00
committed by Paul Licameli
parent 87bf94e811
commit 22ce129f8d
3 changed files with 3 additions and 6 deletions

View File

@@ -106,7 +106,7 @@ static void DrawTrackName(
const int kTranslucentHeight = 124;
int h = rect.GetHeight();
// f codes the opacity as a number between 0.0 and 1.0
float f= wxClip((h -kOpaqueHeight)/(float)(kTranslucentHeight-kOpaqueHeight),0.0,1.0);
float f = wxClip((h-kOpaqueHeight)/(float)(kTranslucentHeight-kOpaqueHeight),0.0,1.0);
// kOpaque is the shield's alpha for tracks that are not tall
// kTranslucent is the shield's alpha for tracks that are tall.
const int kOpaque = 255;