]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Cocoa: Redraw the View asynchronously
authorAndreas Färber <andreas.faerber@web.de>
Sun, 13 Dec 2009 01:08:58 +0000 (02:08 +0100)
committermalc <av1474@comtv.ru>
Thu, 7 Jan 2010 07:57:33 +0000 (10:57 +0300)
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>
cocoa.m

diff --git a/cocoa.m b/cocoa.m
index dc9263a713efb0c8afaca455f375937d172e2e1d..d5f941bd5374feb6139fd8e810479a3c42e12b08 100644 (file)
--- 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)