1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-02 03:20:06 +00:00

Fixed an iOS compiler warning

This commit is contained in:
Tom Poole 2019-06-07 09:22:10 +01:00
parent bdb3b5ab40
commit b22db01968

View file

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