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

DemoRunner: Enable all orientations and kiosk mode on mobile

This commit is contained in:
ed 2021-02-05 10:36:20 +00:00
parent 78a09bdfc6
commit bdb41ee995

View file

@ -129,7 +129,11 @@ private:
#if JUCE_IOS || JUCE_ANDROID
setFullScreen (true);
Desktop::getInstance().setOrientationsEnabled (Desktop::rotatedClockwise | Desktop::rotatedAntiClockwise);
auto& desktop = Desktop::getInstance();
desktop.setOrientationsEnabled (Desktop::allOrientations);
desktop.setKioskModeComponent (this);
#else
setBounds ((int) (0.1f * (float) getParentWidth()),
(int) (0.1f * (float) getParentHeight()),