SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit ed01c569d4adafe2cc6ed30dedfdb4e75de29ae8 parent a040b1b3951591399cf026df6d921ce4325bbe38 Author: Lior Halphon <LIJI32@gmail.com> Date: Sun, 5 Feb 2023 21:35:52 +0200 Correct layout on iPhone 12 and 13 Mini Diffstat:
| M | iOS/GBHorizontalLayout.m | 2 | +- |
| M | iOS/GBViewController.m | 5 | ----- |
2 files changed, 1 insertion(+), 6 deletions(-)
diff --git a/iOS/GBHorizontalLayout.m b/iOS/GBHorizontalLayout.m @@ -11,7 +11,7 @@ CGSize resolution = {self.resolution.height - self.cutout, self.resolution.width}; CGRect screenRect = {0,}; - screenRect.size.height = self.hasFractionalPixels? resolution.height : floor((resolution.height - self.homeBar) / 144) * 144; + screenRect.size.height = self.hasFractionalPixels? (resolution.height - self.homeBar) : floor((resolution.height - self.homeBar) / 144) * 144; screenRect.size.width = screenRect.size.height / 144 * 160; double horizontalMargin, verticalMargin; diff --git a/iOS/GBViewController.m b/iOS/GBViewController.m @@ -449,11 +449,6 @@ static void rumbleCallback(GB_gameboy_t *gb, double amp) return true; } -- (BOOL)prefersHomeIndicatorAutoHidden -{ - return true; -} - - (UIRectEdge)preferredScreenEdgesDeferringSystemGestures { return UIRectEdgeTop;
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.