path: root/cocoa.m
diff options
authorAndreas Färber <andreas.faerber@web.de>2009-12-13 02:08:58 +0100
committermalc <av1474@comtv.ru>2010-01-07 10:57:33 +0300
commit17ccbc27def7bb8d27ffc41a3d8e6031dc46ccb4 (patch)
tree2cd7ae326d1ede5848cf7b4dc593af46788c82ce /cocoa.m
parentd50f71dc17b41205c33f8a45aa4850ad224dfc2c (diff)
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 <andreas.faerber@web.de> Cc: Juha Riihimäki <juha.riihimaki@nokia.com> Cc: Alexander Graf <alex@csgraf.de> Cc: Mike Kronenberg <mike.kronenberg@kronenberg.org> Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'cocoa.m')
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa.m b/cocoa.m
index dc9263a71..d5f941bd5 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)