iOS: Hide home indicator on iPhone X
This commit is contained in:
parent
64ae5c54cc
commit
c63f1370e4
|
@ -8,7 +8,7 @@
|
|||
cd irrlicht-src/
|
||||
|
||||
if [ ! -f .patched ]; then
|
||||
for p in touchcount unscaled dblfreefix viewcontroller headerpath roundingerror; do
|
||||
for p in touchcount unscaled dblfreefix viewcontroller headerpath roundingerror hideindicator; do
|
||||
patch -p0 <../../patches/irrlicht-$p.patch
|
||||
done
|
||||
touch .patched
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
--- source/Irrlicht/CIrrDeviceiOS.mm.orig 2018-08-19 12:49:52.000000000 +0200
|
||||
+++ source/Irrlicht/CIrrDeviceiOS.mm 2018-08-19 12:54:20.000000000 +0200
|
||||
@@ -28,6 +28,17 @@
|
||||
{
|
||||
class CIrrDeviceiOS;
|
||||
}
|
||||
+
|
||||
+/* IrrUIViewController */
|
||||
+
|
||||
+@interface IrrUIViewController : UIViewController
|
||||
+@end
|
||||
+
|
||||
+@implementation IrrUIViewController
|
||||
+- (BOOL)prefersHomeIndicatorAutoHidden {
|
||||
+ return YES;
|
||||
+}
|
||||
+@end
|
||||
|
||||
/* CIrrDelegateiOS */
|
||||
|
||||
@@ -704,7 +715,7 @@
|
||||
if (externalView == nil)
|
||||
{
|
||||
dataStorage->Window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
|
||||
- dataStorage->ViewController = [[UIViewController alloc] init];
|
||||
+ dataStorage->ViewController = [[IrrUIViewController alloc] init];
|
||||
dataStorage->Window.rootViewController = dataStorage->ViewController;
|
||||
|
||||
[dataStorage->Window makeKeyAndVisible];
|
Loading…
Reference in New Issue