git.y1.nz

SameBoy

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

commit fb8508ea2087f95c07110bd5a556351a690b4af6
parent 461083523ae821a4cda1f9ad2fccb851a4c39918
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat, 17 Aug 2024 19:35:32 +0300

Fix an issue that could make the logo incorrectly positioned on a potential new iPhone model

Diffstat:
MiOS/GBLayout.m3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/iOS/GBLayout.m b/iOS/GBLayout.m @@ -142,6 +142,9 @@ static bool HasHomeBar(void) CGRect rect = CGRectMake(0, range.location - range.length / 3, self.size.width, range.length * 2); + if (self.size.width > self.size.height) { + rect.origin.x += _cutout / 2; + } NSMutableParagraphStyle *style = [NSParagraphStyle defaultParagraphStyle].mutableCopy; style.alignment = NSTextAlignmentCenter; [@"SAMEBOY" drawInRect:rect

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