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:
parent
78a09bdfc6
commit
bdb41ee995
1 changed files with 5 additions and 1 deletions
|
|
@ -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()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue