Browse Source

Fixed an iOS compiler warning

tags/2021-05-28
Tom Poole 6 years ago
parent
commit
b22db01968
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      extras/AudioPluginHost/Source/UI/PluginWindow.h

+ 2
- 2
extras/AudioPluginHost/Source/UI/PluginWindow.h View File

@@ -154,10 +154,10 @@ public:
#if JUCE_IOS || JUCE_ANDROID #if JUCE_IOS || JUCE_ANDROID
auto screenBounds = Desktop::getInstance().getDisplays().getTotalBounds (true).toFloat(); auto screenBounds = Desktop::getInstance().getDisplays().getTotalBounds (true).toFloat();
auto scaleFactor = jmin ((screenBounds.getWidth() - 50) / getWidth(), (screenBounds.getHeight() - 50) / getHeight()); auto scaleFactor = jmin ((screenBounds.getWidth() - 50) / getWidth(), (screenBounds.getHeight() - 50) / getHeight());
if (scaleFactor < 1.0f) if (scaleFactor < 1.0f)
setSize (getWidth() * scaleFactor, getHeight() * scaleFactor);
setSize ((int) (getWidth() * scaleFactor), (int) (getHeight() * scaleFactor));
setTopLeftPosition (20, 20); setTopLeftPosition (20, 20);
#else #else


Loading…
Cancel
Save