Przeglądaj źródła

Simple dock: 190ih's input meter reads 190jc's stripHeight() (merge fix: it became a function)

Ka1-S 2 tygodni temu
rodzic
commit
a76e1271db
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/ui/SimpleDock.cpp

+ 2 - 2
src/ui/SimpleDock.cpp

@@ -2678,7 +2678,7 @@ bool SimpleDock::inputMeterShown() const
 juce::Rectangle<int> SimpleDock::inputMeterArea() const
 {
     const auto right = followButton.isVisible() ? followButton.getX() - 10 : getWidth() - 10; // (round 190jj merge: 190jc moved the hide button to the left)
-    return { right - 190, 0, 190, stripHeight };
+    return { right - 190, 0, 190, stripHeight() };
 }
 
 juce::Rectangle<int> SimpleDock::inputMeterBar() const
@@ -2705,7 +2705,7 @@ void SimpleDock::tickInputMeter()
     if (shown != inputMeterWasShown)
     {
         inputMeterWasShown = shown;
-        repaint (getLocalBounds().withHeight (stripHeight)); // (the record hint moves left of it)
+        repaint (getLocalBounds().withHeight (stripHeight())); // (the record hint moves left of it)
     }
     else if (width != juce::roundToInt (inputLevel * (float) inputMeterBar().getWidth()))
         repaint (inputMeterBar().expanded (1));