mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-04 13:40:58 +01:00
Fix ghost image on track panel
Thanks to David for tracking down the cause, the ghost has been banished.
This commit is contained in:
@@ -1836,7 +1836,8 @@ void AdornedRulerPanel::OnErase(wxEraseEvent & WXUNUSED(evt))
|
||||
|
||||
void AdornedRulerPanel::OnPaint(wxPaintEvent & WXUNUSED(evt))
|
||||
{
|
||||
wxBufferedPaintDC dc(this);
|
||||
// wxBufferedPaintDC dc(this);
|
||||
wxPaintDC dc(this);
|
||||
|
||||
DoDrawBorder(&dc);
|
||||
|
||||
@@ -1845,6 +1846,8 @@ void AdornedRulerPanel::OnPaint(wxPaintEvent & WXUNUSED(evt))
|
||||
DoDrawSelection(&dc);
|
||||
}
|
||||
|
||||
DoDrawMarks(&dc, true);
|
||||
|
||||
if (mIndType >= 0)
|
||||
{
|
||||
DoDrawIndicator(&dc);
|
||||
@@ -1855,8 +1858,6 @@ void AdornedRulerPanel::OnPaint(wxPaintEvent & WXUNUSED(evt))
|
||||
DrawQuickPlayIndicator(&dc, false);
|
||||
}
|
||||
|
||||
DoDrawMarks(&dc, true);
|
||||
|
||||
if (mViewInfo->selectedRegion.isPoint())
|
||||
{
|
||||
DoDrawCursor(&dc);
|
||||
|
||||
Reference in New Issue
Block a user