diff options
| author | nyamatongwe <nyamatongwe@gmail.com> | 2012-08-24 18:56:54 +1000 |
|---|---|---|
| committer | nyamatongwe <nyamatongwe@gmail.com> | 2012-08-24 18:56:54 +1000 |
| commit | 0ebd7cda67d99bb3027212a06360a215ac5e7551 (patch) | |
| tree | 2c94df5c84883fefcf4cedb4d1adef9410b0bf24 /cocoa/ScintillaView.mm | |
| parent | ad7a82dd1ce1e3cc6c5fefc5fb68d18d38b5163b (diff) | |
| download | scintilla-mirror-0ebd7cda67d99bb3027212a06360a215ac5e7551.tar.gz | |
Ensure abandoned paints cover full area by using NSView display instead of trying
to draw more within initial drawing context.
Diffstat (limited to 'cocoa/ScintillaView.mm')
| -rw-r--r-- | cocoa/ScintillaView.mm | 4 |
1 files changed, 3 insertions, 1 deletions
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]; + } } //-------------------------------------------------------------------------------------------------- |
