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:
parent
bdb3b5ab40
commit
b22db01968
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue