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 | c4ce4d309ac593373d533e9913b0a6a5f4400e0b (patch) | |
| tree | d2167d2826706319fdc379029127905b4dfe3c15 /cocoa/ScintillaView.mm | |
| parent | 48eb4e8d252086bfd55d3a16eb2bc8d374525299 (diff) | |
| download | scintilla-mirror-c4ce4d309ac593373d533e9913b0a6a5f4400e0b.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]; + } } //-------------------------------------------------------------------------------------------------- |
