Skip to content

Commit

Permalink
Fixes the blinking play region after it was cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
crsib committed Nov 10, 2023
1 parent fd5be87 commit daf2a3a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/AdornedRulerPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2574,12 +2574,13 @@ void AdornedRulerPanel::DoDrawPlayRegion(
wxDC * dc, const wxRect &rectP, const wxRect &rectL, const wxRect &rectR)
{
const auto &viewInfo = ViewInfo::Get(*mProject);
const auto &playRegion = viewInfo.playRegion;
if (playRegion.IsLastActiveRegionClear())
return;
const auto& playRegion = viewInfo.playRegion;

const bool isActive = (mLastPlayRegionActive = playRegion.Active());

if (playRegion.IsLastActiveRegionClear())
return;

// Paint the selected region bolder if independently varying, else dim
const auto color = TimelineLoopRegionColor(isActive);
dc->SetBrush( wxBrush( theTheme.Colour( color )) );
Expand Down

0 comments on commit daf2a3a

Please sign in to comment.