From 17ccbc27def7bb8d27ffc41a3d8e6031dc46ccb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Sun, 13 Dec 2009 02:08:58 +0100 Subject: [PATCH] Cocoa: Redraw the View asynchronously MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cf. http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CocoaPerformance/Articles/CustomViews.html Based on patch by Juha Riihimäki. Signed-off-by: Andreas Färber Cc: Juha Riihimäki Cc: Alexander Graf Cc: Mike Kronenberg Signed-off-by: malc --- cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocoa.m b/cocoa.m index dc9263a713..d5f941bd53 100644 --- a/cocoa.m +++ b/cocoa.m @@ -938,7 +938,7 @@ static void cocoa_update(DisplayState *ds, int x, int y, int w, int h) w * [cocoaView cdx], h * [cocoaView cdy]); } - [cocoaView displayRect:rect]; + [cocoaView setNeedsDisplayInRect:rect]; } static void cocoa_resize(DisplayState *ds)