From 0ebd7cda67d99bb3027212a06360a215ac5e7551 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 24 Aug 2012 18:56:54 +1000 Subject: Ensure abandoned paints cover full area by using NSView display instead of trying to draw more within initial drawing context. --- cocoa/ScintillaView.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cocoa/ScintillaView.mm') diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index ba363ef14..178762d68 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -127,7 +127,9 @@ NSString *SCIUpdateUINotification = @"SCIUpdateUI"; { CGContextRef context = (CGContextRef) [[NSGraphicsContext currentContext] graphicsPort]; - mOwner.backend->Draw(rect, context); + if (!mOwner.backend->Draw(rect, context)) { + [self display]; + } } //-------------------------------------------------------------------------------------------------- -- cgit v1.2.3