mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-24 23:33:50 +02:00
Appearance on OSX is now back to normal or better
Some additional wx3 cleanup as well.
This commit is contained in:
@@ -105,7 +105,7 @@ void AColor::Line(wxDC & dc, wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2)
|
||||
// last point since it is now based on the new wxGraphicsContext system.
|
||||
// Make the other platforms do the same thing since the other platforms
|
||||
// "may" follow they get wxGraphicsContext going.
|
||||
#if defined(__WXMAC__)
|
||||
#if defined(__WXMAC__) || defined(__WXGTK__)
|
||||
dc.DrawLine(x1, y1, x2, y2);
|
||||
#else
|
||||
bool point = false;
|
||||
@@ -301,13 +301,17 @@ void AColor::TrackPanelBackground(wxDC * dc, bool selected)
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
void AColor::CursorColor(wxDC * dc)
|
||||
{
|
||||
if (!inited)
|
||||
Init();
|
||||
#if defined(__WXMAC__) || defined(__WXGTK__)
|
||||
dc->SetLogicalFunction(wxCOPY);
|
||||
dc->SetPen(wxColor(0, 0, 0, 128));
|
||||
#else
|
||||
dc->SetLogicalFunction(wxINVERT);
|
||||
dc->SetPen(cursorPen);
|
||||
#endif
|
||||
}
|
||||
|
||||
void AColor::IndicatorColor(wxDC * dc, bool bIsNotRecording)
|
||||
|
||||
Reference in New Issue
Block a user