mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02:00
Misc. cleanup
This commit is contained in:
@@ -267,7 +267,7 @@ void TrackArtist::UpdatePrefs()
|
||||
|
||||
mbShowTrackNameInTrack =
|
||||
gPrefs->ReadBool(wxT("/GUI/ShowTrackNameInWaveform"), false);
|
||||
|
||||
|
||||
UpdateSelectedPrefs( ShowClippingPrefsID() );
|
||||
|
||||
SetColours(0);
|
||||
|
@@ -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"
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user