mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-31 14:02:05 -06:00
Cocoa: ppc64 host support
Fix integer usage in the Cocoa backend: NSInteger is long on LP64.
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 <andreas.faerber@web.de>
Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
parent
821b19fe92
commit
44e4c0ba86
1 changed files with 8 additions and 0 deletions
8
cocoa.m
8
cocoa.m
|
@ -28,6 +28,10 @@
|
||||||
#include "console.h"
|
#include "console.h"
|
||||||
#include "sysemu.h"
|
#include "sysemu.h"
|
||||||
|
|
||||||
|
#ifndef MAC_OS_X_VERSION_10_5
|
||||||
|
#define MAC_OS_X_VERSION_10_5 1050
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
//#define DEBUG
|
//#define DEBUG
|
||||||
|
|
||||||
|
@ -337,7 +341,11 @@ int cocoa_keycode_to_qemu(int keycode)
|
||||||
} else {
|
} else {
|
||||||
// selective drawing code (draws only dirty rectangles) (OS X >= 10.4)
|
// selective drawing code (draws only dirty rectangles) (OS X >= 10.4)
|
||||||
const NSRect *rectList;
|
const NSRect *rectList;
|
||||||
|
#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
|
||||||
|
NSInteger rectCount;
|
||||||
|
#else
|
||||||
int rectCount;
|
int rectCount;
|
||||||
|
#endif
|
||||||
int i;
|
int i;
|
||||||
CGImageRef clipImageRef;
|
CGImageRef clipImageRef;
|
||||||
CGRect clipRect;
|
CGRect clipRect;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue