mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-23 07:40:05 +02:00
Fix positioning of Mute/Solo button when clicked on.
This commit is contained in:
parent
1c1191ed98
commit
fae1089b73
@ -58,7 +58,7 @@
|
||||
|
||||
//August 2009 - Theming not locked down enough for a stable release.
|
||||
// This turns on the Theme panel in Prefs dialog. It is independent of EXPERIMENTAL_THEMING.
|
||||
//#define EXPERIMENTAL_THEME_PREFS
|
||||
#define EXPERIMENTAL_THEME_PREFS
|
||||
|
||||
//Next line enables Mic monitoring at times when it was previously off.
|
||||
//More work is needed as after recording or playing it results in an
|
||||
|
@ -5374,6 +5374,7 @@ bool TrackPanel::MuteSoloFunc(Track * t, wxRect rect, int x, int y,
|
||||
bool solo)
|
||||
{
|
||||
wxRect buttonRect;
|
||||
rect.width +=4;
|
||||
mTrackInfo.GetMuteSoloRect(rect, buttonRect, solo, HasSoloButton(), t);
|
||||
if (!buttonRect.Contains(x, y))
|
||||
return false;
|
||||
@ -9459,7 +9460,6 @@ void TrackInfo::DrawMuteSolo(wxDC * dc, const wxRect & rect, Track * t,
|
||||
return;
|
||||
GetMuteSoloRect(rect, bev, solo, bHasSoloButton, t);
|
||||
//bev.Inflate(-1, -1);
|
||||
|
||||
if (bev.y + bev.height >= rect.y + rect.height - 19)
|
||||
return; // don't draw mute and solo buttons, because they don't fit into track label
|
||||
auto pt = dynamic_cast<const PlayableTrack *>(t);
|
||||
|
Loading…
x
Reference in New Issue
Block a user