mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-24 23:33:50 +02:00
The ruler cursor (short vertical stroke at selection) should not change color...
... during play or record.
That bug was introduced at b19ed258e9
This commit is contained in:
@@ -17,16 +17,32 @@ It is also a place to document colour usage policy in Audacity
|
||||
|
||||
*//********************************************************************/
|
||||
|
||||
#include "Audacity.h"
|
||||
#include "AColor.h"
|
||||
|
||||
#include <wx/colour.h>
|
||||
#include <wx/dc.h>
|
||||
#include <wx/settings.h>
|
||||
#include <wx/utils.h>
|
||||
|
||||
#include "AColor.h"
|
||||
#include "Theme.h"
|
||||
#include "Experimental.h"
|
||||
#include "AllThemeResources.h"
|
||||
|
||||
void DCUnchanger::operator () (wxDC *pDC) const
|
||||
{
|
||||
if (pDC) {
|
||||
pDC->SetPen(pen);
|
||||
pDC->SetBrush(brush);
|
||||
pDC->SetLogicalFunction(wxRasterOperationMode(logicalOperation));
|
||||
}
|
||||
}
|
||||
|
||||
ADCChanger::ADCChanger(wxDC *pDC)
|
||||
: Base{ pDC, ::DCUnchanger{ pDC->GetBrush(), pDC->GetPen(),
|
||||
long(pDC->GetLogicalFunction()) } }
|
||||
{}
|
||||
|
||||
bool AColor::inited = false;
|
||||
wxBrush AColor::lightBrush[2];
|
||||
wxBrush AColor::mediumBrush[2];
|
||||
|
||||
Reference in New Issue
Block a user