From patchwork Wed Jan 6 22:47:13 2010 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: 42353 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 49084B6EFE for ; Thu, 7 Jan 2010 09:55:03 +1100 (EST) Received: from localhost ([127.0.0.1]:54181 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSemJ-00032s-V9 for incoming@patchwork.ozlabs.org; Wed, 06 Jan 2010 17:55:00 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NSef8-0007PI-CC for qemu-devel@nongnu.org; Wed, 06 Jan 2010 17:47:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NSef2-0007Lc-PA for qemu-devel@nongnu.org; Wed, 06 Jan 2010 17:47:32 -0500 Received: from [199.232.76.173] (port=50112 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSef2-0007LX-Io for qemu-devel@nongnu.org; Wed, 06 Jan 2010 17:47:28 -0500 Received: from fmmailgate01.web.de ([217.72.192.221]:50474) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NSef2-00054l-07 for qemu-devel@nongnu.org; Wed, 06 Jan 2010 17:47:28 -0500 Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate01.web.de (Postfix) with ESMTP id 4003E1447A545; Wed, 6 Jan 2010 23:47:27 +0100 (CET) Received: from [84.148.52.231] (helo=localhost.localdomain) by smtp05.web.de with asmtp (WEB.DE 4.110 #314) id 1NSef0-0001R8-01; Wed, 06 Jan 2010 23:47:26 +0100 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: qemu-devel@nongnu.org Date: Wed, 6 Jan 2010 23:47:13 +0100 Message-Id: <1262818037-926-8-git-send-email-andreas.faerber@web.de> X-Mailer: git-send-email 1.6.5.3 In-Reply-To: <1262818037-926-7-git-send-email-andreas.faerber@web.de> References: <1262818037-926-1-git-send-email-andreas.faerber@web.de> <1262818037-926-2-git-send-email-andreas.faerber@web.de> <1262818037-926-3-git-send-email-andreas.faerber@web.de> <1262818037-926-4-git-send-email-andreas.faerber@web.de> <1262818037-926-5-git-send-email-andreas.faerber@web.de> <1262818037-926-6-git-send-email-andreas.faerber@web.de> <1262818037-926-7-git-send-email-andreas.faerber@web.de> MIME-Version: 1.0 X-Sender: Andreas.Faerber@web.de X-Provags-ID: V01U2FsdGVkX1+SWi3+NhnQWA1F7togC5vBBGeOicXY9cXkMFwD xZwWC2WZVibz3/9Jy35dXj66if5ObABtRgbBH8A8UAqRyiQRDM c0Z7XFVoBLIrf14taXGw== 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 v2 RESEND 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)