aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-02-24 11:24:27 +1100
committernyamatongwe <nyamatongwe@gmail.com>2013-02-24 11:24:27 +1100
commitd6127303073968627802b08f97e52194bcf5d9bf (patch)
treef891af92d87f0bfe3b223c20f84e8524889497b7
parent2c9df3b72495ced583b9ba55c833158b8a9dfd6e (diff)
downloadscintilla-mirror-d6127303073968627802b08f97e52194bcf5d9bf.tar.gz
Fix problem where abandoned paints may not cause redraw.
-rw-r--r--cocoa/ScintillaView.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm
index 542c51679..ae1147a10 100644
--- a/cocoa/ScintillaView.mm
+++ b/cocoa/ScintillaView.mm
@@ -129,7 +129,9 @@ NSString *SCIUpdateUINotification = @"SCIUpdateUI";
CGContextRef context = (CGContextRef) [[NSGraphicsContext currentContext] graphicsPort];
if (!mOwner.backend->Draw(rect, context)) {
- [self display];
+ dispatch_async(dispatch_get_main_queue(), ^{
+ [self display];
+ });
}
}