git.y1.nz

SameBoy

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

commit d1da91da7c77d7aeb4f22170bedd2a0d54e816d6
parent 490d63b26f7994f533805068ed89cab12ca86750
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat, 28 Jun 2025 15:46:02 +0300

Fix tip rotation

Diffstat:
MiOS/GBMenuViewController.m3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/iOS/GBMenuViewController.m b/iOS/GBMenuViewController.m @@ -120,7 +120,7 @@ static NSString *const tips[] = { _effectView = [[UIVisualEffectView alloc] initWithEffect:effect]; _effectView.layer.cornerRadius = 8; _effectView.layer.masksToBounds = true; - [self.view.superview addSubview:_effectView]; + [self.view.window addSubview:_effectView]; _tipLabel = [[UILabel alloc] init]; unsigned tipIndex = [[NSUserDefaults standardUserDefaults] integerForKey:@"GBTipIndex"]; _tipLabel.text = tips[tipIndex % (sizeof(tips) / sizeof(tips[0]))]; @@ -144,6 +144,7 @@ static NSString *const tips[] = { - (void)layoutTip { + [self.view.window addSubview:_effectView]; UIView *view = self.view.superview; CGSize outerSize = view.frame.size; CGSize size = [_tipLabel textRectForBounds:(CGRect){{0, 0},

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