1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-20 14:20:06 +02: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)
Init();
dc->SetLogicalFunction(wxINVERT);
dc->SetLogicalFunction(wxCOPY);
dc->SetPen(cursorPen);
}
@ -422,6 +422,11 @@ void AColor::ReInit()
PreComputeGradient();
}
wxColour InvertOfColour( const wxColour & c )
{
return wxColour( 255-c.Red(), 255-c.Green(), 255-c.Blue() );
}
void AColor::Init()
{
if (inited)
@ -464,6 +469,7 @@ void AColor::Init()
theTheme.SetBrushColour( soloBrush, clrMuteButtonActive);
theTheme.SetPenColour( cursorPen, clrCursorPen);
cursorPen.SetColour( InvertOfColour( cursorPen.GetColour()) );
theTheme.SetPenColour( indicatorPen[0], clrRecordingPen);
theTheme.SetPenColour( indicatorPen[1], clrPlaybackPen);
theTheme.SetBrushColour( indicatorBrush[0], clrRecordingBrush);