Inform icon indicating copy to clipboard operation
Inform copied to clipboard

Weird game display in Sonoma builds

Open angstsmurf opened this issue 1 year ago • 3 comments

In a build made from the current source (0774cc0) on macOS Sonoma (14.0), Counterfeit Monkey looks very strange after resizing the window:

Skärmavbild 2023-10-08 kl  03 04 11

Even stranger, the display looks correct in the Xcode "Debug View Hierarchy" view: Skärmavbild 2023-10-08 kl  03 09 41

This is in Xcode 15.0 on an M1 MacBook Air.

angstsmurf avatar Oct 08 '23 01:10 angstsmurf

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.

angstsmurf avatar Oct 10 '23 17:10 angstsmurf

Nice find.

TobyLobster avatar Oct 10 '23 18:10 TobyLobster

I created a pull request upstream: https://github.com/MaddTheSane/CocoaGlk/pull/1

EDIT: And it was merged.

angstsmurf avatar Oct 20 '23 09:10 angstsmurf