mirror of https://github.com/LIJI32/SameBoy.git
Correct layout on iPhone 12 and 13 Mini
This commit is contained in:
parent
a040b1b395
commit
ed01c569d4
|
@ -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;
|
||||
|
|
|
@ -449,11 +449,6 @@ static void rumbleCallback(GB_gameboy_t *gb, double amp)
|
|||
return true;
|
||||
}
|
||||
|
||||
- (BOOL)prefersHomeIndicatorAutoHidden
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
- (UIRectEdge)preferredScreenEdgesDeferringSystemGestures
|
||||
{
|
||||
return UIRectEdgeTop;
|
||||
|
|
Loading…
Reference in New Issue