diff --git a/iOS/GBHorizontalLayout.m b/iOS/GBHorizontalLayout.m index e82c7f4..4f8dd33 100644 --- 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 index cda8a25..74e39f2 100644 --- 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;