[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 01/11] Cocoa: ppc64 host support
From: |
Andreas Färber |
Subject: |
[Qemu-devel] [PATCH 01/11] Cocoa: ppc64 host support |
Date: |
Sun, 13 Dec 2009 03:55:31 +0100 |
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.
v3:
- Confine NSInteger to Mac OS X v10.5 and later
Signed-off-by: Andreas Färber <address@hidden>
---
cocoa.m | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/cocoa.m b/cocoa.m
index 55ff2b4..989efd5 100644
--- a/cocoa.m
+++ b/cocoa.m
@@ -28,6 +28,10 @@
#include "console.h"
#include "sysemu.h"
+#ifndef MAC_OS_X_VERSION_10_5
+#define MAC_OS_X_VERSION_10_5 1050
+#endif
+
//#define DEBUG
@@ -337,7 +341,11 @@ int cocoa_keycode_to_qemu(int keycode)
} else {
// selective drawing code (draws only dirty rectangles) (OS X >=
10.4)
const NSRect *rectList;
+#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
+ NSInteger rectCount;
+#else
int rectCount;
+#endif
int i;
CGImageRef clipImageRef;
CGRect clipRect;
--
1.6.5.3
- [Qemu-devel] Cocoa: ppc64 host support and various improvements, Andreas Färber, 2009/12/12
- [Qemu-devel] [PATCH 01/11] Cocoa: ppc64 host support,
Andreas Färber <=
- [Qemu-devel] [PATCH 02/11] Cocoa: Silence warning for cocoa_keycode_to_qemu, Andreas Färber, 2009/12/12
- [Qemu-devel] [PATCH 03/11] Cocoa: Silence warning on Big Endian host, Andreas Färber, 2009/12/12
- [Qemu-devel] [PATCH 04/11] Cocoa: Silence type warning, Andreas Färber, 2009/12/12
- [Qemu-devel] [PATCH 05/11] Cocoa: Fix compilation on Mac OS X v10.4 and earlier, Andreas Färber, 2009/12/12
- [Qemu-devel] [PATCH 06/11] Cocoa: Mark the View as opaque, Andreas Färber, 2009/12/12
- [Qemu-devel] [PATCH 07/11] Cocoa: Redraw the View asynchronously, Andreas Färber, 2009/12/12
- [Qemu-devel] [PATCH 08/11] Cocoa: Don't unconditionally show the window, Andreas Färber, 2009/12/12
- [Qemu-devel] [PATCH 09/11] Cocoa: Shutdown when window is closed, Andreas Färber, 2009/12/12
- [Qemu-devel] [PATCH 10/11] Cocoa: Suppress window resize animation, Andreas Färber, 2009/12/12
- [Qemu-devel] [PATCH 11/11] Cocoa: Use optimized drawing for the window, Andreas Färber, 2009/12/12