From fd0a5dfdc646bfd5175976ce2df8ebffc7a94b96 Mon Sep 17 00:00:00 2001 From: Chinh Nguyen Date: Wed, 27 Sep 2023 15:51:34 +1000 Subject: Bug [#2402]. Fix invisible text on macOS 14 Sonoma when building with Xcode 15. --- cocoa/InfoBar.mm | 1 + cocoa/ScintillaView.mm | 3 +++ 2 files changed, 4 insertions(+) (limited to 'cocoa') diff --git a/cocoa/InfoBar.mm b/cocoa/InfoBar.mm index 11d148fb8..652744d9d 100644 --- a/cocoa/InfoBar.mm +++ b/cocoa/InfoBar.mm @@ -95,6 +95,7 @@ mCurrentCaretX = 0; mCurrentCaretY = 0; [self createItems]; + self.clipsToBounds = TRUE; } return self; } diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index cee96def5..4b5bf393a 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -202,6 +202,9 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor) { } - (void) drawRect: (NSRect) rect { + if (!NSContainsRect(self.bounds, rect)) { + rect = self.bounds; + } [super drawRect:rect]; } -- cgit v1.2.3