Correct layout on iPhone 12 and 13 Mini

This commit is contained in:
Lior Halphon 2023-02-05 21:35:52 +02:00
parent a040b1b395
commit ed01c569d4
2 changed files with 1 additions and 6 deletions

View File

@ -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;

View File

@ -449,11 +449,6 @@ static void rumbleCallback(GB_gameboy_t *gb, double amp)
return true;
}
- (BOOL)prefersHomeIndicatorAutoHidden
{
return true;
}
- (UIRectEdge)preferredScreenEdgesDeferringSystemGestures
{
return UIRectEdgeTop;