Skip to content

Commit

Permalink
Fix positioning of DAW latency display
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Feb 10, 2025
1 parent c3c8385 commit f8034b7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Source/Statusbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ class LatencyDisplayButton final : public Component
alpha = 0.0f;
stopTimer(Animate);
setVisible(false);
if(auto* parent = getParentComponent())
{
parent->resized();
}
}
buttonStateChanged();
break;
Expand Down Expand Up @@ -1586,8 +1590,11 @@ void Statusbar::resized()
midiBlinker->setBounds(position(33, true) + 10, 0, 33, getHeight());
cpuMeter->setBounds(position(40, true), 0, 50, getHeight());

if(latencyDisplayButton->isVisible()) {
latencyDisplayButton->setBounds(position(104, true), 0, 100, getHeight());
}

commandInputButton->setTopRightPosition(position(10, true), getHeight() * 0.5f - commandInputButton->getHeight() * 0.5f);
latencyDisplayButton->setBounds(position(104, true), 0, 100, getHeight());
}

void Statusbar::setLatencyDisplay(int const value)
Expand Down

0 comments on commit f8034b7

Please sign in to comment.