git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit d0f17cfaed382ce86e5742b7df2be9d4ff46c37b
parent 76500ebf15fdbfdb0b28baef2bb98c43926f683a
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat, 14 Jan 2023 23:46:51 +0200

Fix portrait support

Diffstat:
MiOS/GBViewController.m2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iOS/GBViewController.m b/iOS/GBViewController.m @@ -164,7 +164,7 @@ static void rumbleCallback(GB_gameboy_t *gb, double amp) if ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad) { return UIInterfaceOrientationMaskAll; } - if ([UIScreen mainScreen].bounds.size.height <= 568) { + if (MAX([UIScreen mainScreen].bounds.size.height, [UIScreen mainScreen].bounds.size.width) <= 568) { return UIInterfaceOrientationMaskLandscape; } return UIInterfaceOrientationMaskAllButUpsideDown;

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.