1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 14:02:57 +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

@@ -267,7 +267,7 @@ void TrackArtist::UpdatePrefs()
mbShowTrackNameInTrack =
gPrefs->ReadBool(wxT("/GUI/ShowTrackNameInWaveform"), false);
UpdateSelectedPrefs( ShowClippingPrefsID() );
SetColours(0);

View File

@@ -37,9 +37,6 @@ struct TrackPanelDrawingContext;
class ZoomInfo;
namespace TrackArt {
void DrawTrackName(TrackPanelDrawingContext &context,
const Track *t, const wxRect & rect );
// Helper: draws the "sync-locked" watermark tiled to a rectangle
void DrawSyncLockTiles(
@@ -93,7 +90,7 @@ public:
// Preference values
float mdBrange; // "/GUI/EnvdBRange"
long mShowClipping; // "/GUI/ShowClipping"
bool mShowClipping; // "/GUI/ShowClipping"
int mSampleDisplay;
bool mbShowTrackNameInTrack; // "/GUI/ShowTrackNameInWaveform"

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;