mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-23 15:41:09 +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.
|
//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.
|
// 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.
|
//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
|
//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)
|
bool solo)
|
||||||
{
|
{
|
||||||
wxRect buttonRect;
|
wxRect buttonRect;
|
||||||
|
rect.width +=4;
|
||||||
mTrackInfo.GetMuteSoloRect(rect, buttonRect, solo, HasSoloButton(), t);
|
mTrackInfo.GetMuteSoloRect(rect, buttonRect, solo, HasSoloButton(), t);
|
||||||
if (!buttonRect.Contains(x, y))
|
if (!buttonRect.Contains(x, y))
|
||||||
return false;
|
return false;
|
||||||
@ -9459,7 +9460,6 @@ void TrackInfo::DrawMuteSolo(wxDC * dc, const wxRect & rect, Track * t,
|
|||||||
return;
|
return;
|
||||||
GetMuteSoloRect(rect, bev, solo, bHasSoloButton, t);
|
GetMuteSoloRect(rect, bev, solo, bHasSoloButton, t);
|
||||||
//bev.Inflate(-1, -1);
|
//bev.Inflate(-1, -1);
|
||||||
|
|
||||||
if (bev.y + bev.height >= rect.y + rect.height - 19)
|
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
|
return; // don't draw mute and solo buttons, because they don't fit into track label
|
||||||
auto pt = dynamic_cast<const PlayableTrack *>(t);
|
auto pt = dynamic_cast<const PlayableTrack *>(t);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user