aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/InfoBar.mm1
-rw-r--r--cocoa/ScintillaView.mm3
2 files changed, 4 insertions, 0 deletions
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];
}