1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 07:13:49 +01:00

wxCOPY rather than wxINVERT for cursor.

This commit is contained in:
James Crook
2017-07-02 15:20:37 +01:00
parent cbe554e10a
commit fb26ee9e80

View File

@@ -347,7 +347,7 @@ void AColor::CursorColor(wxDC * dc)
if (!inited) if (!inited)
Init(); Init();
dc->SetLogicalFunction(wxINVERT); dc->SetLogicalFunction(wxCOPY);
dc->SetPen(cursorPen); dc->SetPen(cursorPen);
} }
@@ -422,6 +422,11 @@ void AColor::ReInit()
PreComputeGradient(); PreComputeGradient();
} }
wxColour InvertOfColour( const wxColour & c )
{
return wxColour( 255-c.Red(), 255-c.Green(), 255-c.Blue() );
}
void AColor::Init() void AColor::Init()
{ {
if (inited) if (inited)
@@ -464,6 +469,7 @@ void AColor::Init()
theTheme.SetBrushColour( soloBrush, clrMuteButtonActive); theTheme.SetBrushColour( soloBrush, clrMuteButtonActive);
theTheme.SetPenColour( cursorPen, clrCursorPen); theTheme.SetPenColour( cursorPen, clrCursorPen);
cursorPen.SetColour( InvertOfColour( cursorPen.GetColour()) );
theTheme.SetPenColour( indicatorPen[0], clrRecordingPen); theTheme.SetPenColour( indicatorPen[0], clrRecordingPen);
theTheme.SetPenColour( indicatorPen[1], clrPlaybackPen); theTheme.SetPenColour( indicatorPen[1], clrPlaybackPen);
theTheme.SetBrushColour( indicatorBrush[0], clrRecordingBrush); theTheme.SetBrushColour( indicatorBrush[0], clrRecordingBrush);