mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-03 01:32:55 +02:00
Fix scrolling view in newer macOS versions
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user