SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 9972ce999dcab913b56f312e8b283172c262f97e parent 8755e505d5712f969601a695e24cdb530aec322b Author: Lior Halphon <LIJI32@gmail.com> Date: Sun, 29 Jan 2023 01:45:17 +0200 Don't apply the about screen inset on button-less iPads Diffstat:
| M | iOS/GBAboutController.m | 16 | +++++++++------- |
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/iOS/GBAboutController.m b/iOS/GBAboutController.m @@ -215,13 +215,15 @@ - (void)viewDidLayoutSubviews { [super viewDidLayoutSubviews]; - UIEdgeInsets insets = self.view.window.safeAreaInsets; - UIView *view = ((UIVisualEffectView *)self.view).contentView; - CGRect parentFrame = self.view.frame; - view.frame = CGRectMake(insets.left, - 0, - parentFrame.size.width - insets.left - insets.right, - parentFrame.size.height - insets.bottom); + if ([UIDevice currentDevice].userInterfaceIdiom != UIUserInterfaceIdiomPad) { + UIEdgeInsets insets = self.view.window.safeAreaInsets; + UIView *view = ((UIVisualEffectView *)self.view).contentView; + CGRect parentFrame = self.view.frame; + view.frame = CGRectMake(insets.left, + 0, + parentFrame.size.width - insets.left - insets.right, + parentFrame.size.height - insets.bottom); + } if (self.view.frame.size.width > self.view.frame.size.height) { [self layoutForHorizontalLayout]; }
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.