SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 6d6aafe887be3e2cc49e315bb01845f8ce3eadc1 parent 003e8914b1f960913dc19565791ecb6fac63af91 Author: Lior Halphon <LIJI32@gmail.com> Date: Fri, 11 Jul 2025 14:46:16 +0300 Fix scrolling view in newer macOS versions Diffstat:
| M | Cocoa/GBImageView.m | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Cocoa/GBImageView.m b/Cocoa/GBImageView.m @@ -44,7 +44,8 @@ } if (parent.displayScrollRect) { - NSBezierPath *path = [NSBezierPath bezierPathWithRect:CGRectInfinite]; + // CGRectInfinite in NSBezierPath is broken in newer macOS versions + NSBezierPath *path = [NSBezierPath bezierPathWithRect:CGRectMake(-0x4000, -0x4000, 0x8000, 0x8000)]; for (unsigned x = 0; x < 2; x++) { for (unsigned y = 0; y < 2; y++) { NSRect rect = parent.scrollRect;
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.