1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Replaced deprecated Displays methods

This commit is contained in:
ed 2020-10-27 11:44:19 +00:00
parent c21241549b
commit b7e28541ca
30 changed files with 51 additions and 51 deletions

View file

@ -510,7 +510,7 @@ public:
soundNames = purchases.getVoiceNames();
#if JUCE_ANDROID || JUCE_IOS
auto screenBounds = Desktop::getInstance().getDisplays().getMainDisplay().userArea;
auto screenBounds = Desktop::getInstance().getDisplays().getPrimaryDisplay()->userArea;
setSize (screenBounds.getWidth(), screenBounds.getHeight());
#else
setSize (800, 600);