Inform
Inform copied to clipboard
Weird game display in Sonoma builds
In a build made from the current source (0774cc0) on macOS Sonoma (14.0), Counterfeit Monkey looks very strange after resizing the window:
Even stranger, the display looks correct in the Xcode "Debug View Hierarchy" view:
This is in Xcode 15.0 on an M1 MacBook Air.
After browsing the Apple Developer forums, the problem seems to be either that NSView clipToBounds is set to NO by default in Sonoma, or an AppKit bug. See: https://developer.apple.com/forums/thread/738042
EDIT: Indeed, adding
self.clipsToBounds = YES;
to GlkWindow initWithFrame
seems to fix it.
Nice find.
I created a pull request upstream: https://github.com/MaddTheSane/CocoaGlk/pull/1
EDIT: And it was merged.