From: Andreas Färber Date: Sun, 13 Dec 2009 01:08:58 +0000 (+0100) Subject: Cocoa: Redraw the View asynchronously X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=17ccbc27def7bb8d27ffc41a3d8e6031dc46ccb4;p=qmiga%2Fqemu.git Cocoa: Redraw the View asynchronously 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 --- 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)