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/ScintillaView.mm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cocoa/ScintillaView.mm') 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