From d6127303073968627802b08f97e52194bcf5d9bf Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 24 Feb 2013 11:24:27 +1100 Subject: Fix problem where abandoned paints may not cause redraw. --- cocoa/ScintillaView.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cocoa') 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]; + }); } } -- cgit v1.2.3