From patchwork Sun Dec 6 04:57:56 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 40410 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 96DB4B7BCC for ; Sun, 6 Dec 2009 16:00:39 +1100 (EST) Received: from localhost ([127.0.0.1]:32798 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NH9Ea-0004aR-S1 for incoming@patchwork.ozlabs.org; Sun, 06 Dec 2009 00:00:36 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NH9Ca-00040h-Pi for qemu-devel@nongnu.org; Sat, 05 Dec 2009 23:58:32 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NH9CW-0003zh-73 for qemu-devel@nongnu.org; Sat, 05 Dec 2009 23:58:32 -0500 Received: from [199.232.76.173] (port=37977 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NH9CV-0003zT-PH for qemu-devel@nongnu.org; Sat, 05 Dec 2009 23:58:27 -0500 Received: from fmmailgate02.web.de ([217.72.192.227]:54048) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NH9CV-0006MG-9O for qemu-devel@nongnu.org; Sat, 05 Dec 2009 23:58:27 -0500 Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate02.web.de (Postfix) with ESMTP id 5B49E146E86F7; Sun, 6 Dec 2009 05:58:25 +0100 (CET) Received: from [84.148.62.236] (helo=localhost.localdomain) by smtp08.web.de with asmtp (WEB.DE 4.110 #314) id 1NH9CS-0002Kf-02; Sun, 06 Dec 2009 05:58:25 +0100 From: Andreas Faerber To: qemu-devel@nongnu.org Date: Sun, 6 Dec 2009 05:57:56 +0100 Message-Id: <1260075477-76209-3-git-send-email-andreas.faerber@web.de> X-Mailer: git-send-email 1.6.5.3 In-Reply-To: <1260075477-76209-2-git-send-email-andreas.faerber@web.de> References: <1260075477-76209-1-git-send-email-andreas.faerber@web.de> <1260075477-76209-2-git-send-email-andreas.faerber@web.de> X-Sender: Andreas.Faerber@web.de X-Provags-ID: V01U2FsdGVkX19Ymlk0yX6kCZfSvjzgVU+gQaltoIaOmFg6Zro7 tGnqoLhWc9t59kSz++YMV6H4zBoqpCRZxUU0baQJ/3v4n9CIVf SxKYo7i0z5Anu1L5I/qA== X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Cc: Alexander Graf , Andreas Faerber , Mike Kronenberg Subject: [Qemu-devel] [PATCH 2/3] Cocoa: ppc64 host support 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 Fix integer usage in the Cocoa backend: NSInteger is long on LP64. http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/Reference/NSView.html#//apple_ref/doc/uid/20000014-BBCFHHCD This makes the graphical display show up on a ppc64 host. Signed-off-by: Andreas Faerber 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 55ff2b4..7062571 100644 --- a/cocoa.m +++ b/cocoa.m @@ -337,7 +337,7 @@ int cocoa_keycode_to_qemu(int keycode) } else { // selective drawing code (draws only dirty rectangles) (OS X >= 10.4) const NSRect *rectList; - int rectCount; + NSInteger rectCount; int i; CGImageRef clipImageRef; CGRect clipRect;