qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 07/11] Cocoa: Redraw the View asynchronously


From: Andreas Färber
Subject: [Qemu-devel] [PATCH 07/11] Cocoa: Redraw the View asynchronously
Date: Sun, 13 Dec 2009 03:55:37 +0100

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 <address@hidden>
Cc: Juha Riihimäki <address@hidden>
Cc: Alexander Graf <address@hidden>
Cc: Mike Kronenberg <address@hidden>
---
 cocoa.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cocoa.m b/cocoa.m
index dc9263a..d5f941b 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)
-- 
1.6.5.3





reply via email to

[Prev in Thread] Current Thread [Next in Thread]