From patchwork Sun Dec 13 02:55:37 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 41012 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 42244B6EE9 for ; Sun, 13 Dec 2009 14:03:54 +1100 (EST) Received: from localhost ([127.0.0.1]:41996 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJekR-0001Kd-LG for incoming@patchwork.ozlabs.org; Sat, 12 Dec 2009 22:03:51 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NJed6-0007KM-7f for qemu-devel@nongnu.org; Sat, 12 Dec 2009 21:56:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NJecx-0007GD-Q8 for qemu-devel@nongnu.org; Sat, 12 Dec 2009 21:56:12 -0500 Received: from [199.232.76.173] (port=45235 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJecx-0007Ft-5P for qemu-devel@nongnu.org; Sat, 12 Dec 2009 21:56:07 -0500 Received: from fmmailgate02.web.de ([217.72.192.227]:32793) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NJecw-0000fK-Dg for qemu-devel@nongnu.org; Sat, 12 Dec 2009 21:56:06 -0500 Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate02.web.de (Postfix) with ESMTP id 9F33C1484D0FD; Sun, 13 Dec 2009 03:56:04 +0100 (CET) Received: from [84.148.98.194] (helo=localhost.localdomain) by smtp07.web.de with asmtp (WEB.DE 4.110 #314) id 1NJecu-0000uu-00; Sun, 13 Dec 2009 03:56:04 +0100 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: qemu-devel@nongnu.org Date: Sun, 13 Dec 2009 03:55:37 +0100 Message-Id: <1260672941-9365-8-git-send-email-andreas.faerber@web.de> X-Mailer: git-send-email 1.6.5.3 In-Reply-To: <1260672941-9365-7-git-send-email-andreas.faerber@web.de> References: <1260672941-9365-1-git-send-email-andreas.faerber@web.de> <1260672941-9365-2-git-send-email-andreas.faerber@web.de> <1260672941-9365-3-git-send-email-andreas.faerber@web.de> <1260672941-9365-4-git-send-email-andreas.faerber@web.de> <1260672941-9365-5-git-send-email-andreas.faerber@web.de> <1260672941-9365-6-git-send-email-andreas.faerber@web.de> <1260672941-9365-7-git-send-email-andreas.faerber@web.de> MIME-Version: 1.0 X-Sender: Andreas.Faerber@web.de X-Provags-ID: V01U2FsdGVkX1857aiXT88tnHyo4EdX/ljpeeFUyqun9gIu20Dh rdE2r6slJf18s3HeUW4db/tQT+I8Z1DyCMkcPhPZJt265SFf4N IXXSITfIjA4vsUKp7nfA== X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Cc: Mike Kronenberg , Alexander Graf , =?UTF-8?q?Andreas=20F=C3=A4rber?= , =?UTF-8?q?Juha=20Riihim=C3=A4ki?= Subject: [Qemu-devel] [PATCH 07/11] Cocoa: Redraw the View asynchronously X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 --- 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)