1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Move drawing code for background below tracks

This commit is contained in:
Paul Licameli
2018-11-04 15:57:37 -05:00
parent f84d92f0a8
commit 4633f4f9d4
4 changed files with 40 additions and 10 deletions

View File

@@ -973,16 +973,6 @@ void TrackPanel::DrawEverythingElse(TrackPanelDrawingContext &context,
auto target = Target();
// Paint over the part below the tracks
trackRect.y += trackRect.height;
if (trackRect.y < clip.GetBottom()) {
AColor::TrackPanelBackground(dc, false);
dc->DrawRectangle(trackRect.x,
trackRect.y,
trackRect.width,
clip.height - trackRect.y);
}
// Sometimes highlight is not drawn on backing bitmap. I thought
// it was because FindFocus did not return "this" on Mac, but
// when I removed that test, yielding this condition: