1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-06 14:35:32 +01:00

Revert "Fix ghost image on track panel"

This reverts commit b19ed258e9.
This commit is contained in:
Leland Lucius
2015-08-19 15:37:27 -05:00
parent b19ed258e9
commit a80c20c9b2
2 changed files with 10 additions and 9 deletions

View File

@@ -1836,8 +1836,7 @@ void AdornedRulerPanel::OnErase(wxEraseEvent & WXUNUSED(evt))
void AdornedRulerPanel::OnPaint(wxPaintEvent & WXUNUSED(evt))
{
// wxBufferedPaintDC dc(this);
wxPaintDC dc(this);
wxBufferedPaintDC dc(this);
DoDrawBorder(&dc);
@@ -1846,8 +1845,6 @@ void AdornedRulerPanel::OnPaint(wxPaintEvent & WXUNUSED(evt))
DoDrawSelection(&dc);
}
DoDrawMarks(&dc, true);
if (mIndType >= 0)
{
DoDrawIndicator(&dc);
@@ -1858,6 +1855,8 @@ void AdornedRulerPanel::OnPaint(wxPaintEvent & WXUNUSED(evt))
DrawQuickPlayIndicator(&dc, false);
}
DoDrawMarks(&dc, true);
if (mViewInfo->selectedRegion.isPoint())
{
DoDrawCursor(&dc);