mirror of https://github.com/snes9xgit/snes9x.git
macosx: make compatible with 10.7-10.11 SDK
This commit is contained in:
parent
d05d0b7d39
commit
81d838cb55
|
@ -233,6 +233,10 @@ enum
|
||||||
#define kCommandColorButtonBase 0x59000000
|
#define kCommandColorButtonBase 0x59000000
|
||||||
#define kCIFilterNamePrefKey CFSTR("CoreImageFilterName")
|
#define kCIFilterNamePrefKey CFSTR("CoreImageFilterName")
|
||||||
|
|
||||||
|
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
|
||||||
|
#define truncEnd 0
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char name[256];
|
char name[256];
|
||||||
char displayName[256];
|
char displayName[256];
|
||||||
|
|
|
@ -237,6 +237,10 @@ static pascal OSStatus RomInfoEventHandler (EventHandlerCallRef, EventRef, void
|
||||||
static pascal OSStatus AutofireTabEventHandler (EventHandlerCallRef, EventRef, void *);
|
static pascal OSStatus AutofireTabEventHandler (EventHandlerCallRef, EventRef, void *);
|
||||||
static pascal OSStatus AutofireWindowEventHandler (EventHandlerCallRef, EventRef, void *);
|
static pascal OSStatus AutofireWindowEventHandler (EventHandlerCallRef, EventRef, void *);
|
||||||
|
|
||||||
|
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
|
||||||
|
extern "C" FMFont FMGetFontFromATSFontRef (ATSFontRef iFont);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static OSStatus UpdateTextControlView (HIViewRef control)
|
static OSStatus UpdateTextControlView (HIViewRef control)
|
||||||
{
|
{
|
||||||
|
|
|
@ -214,13 +214,16 @@
|
||||||
#include "mac-os.h"
|
#include "mac-os.h"
|
||||||
#include "mac-multicart.h"
|
#include "mac-multicart.h"
|
||||||
|
|
||||||
|
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
|
||||||
|
#define truncEnd 0
|
||||||
|
#endif
|
||||||
|
|
||||||
static pascal OSStatus MultiCartEventHandler (EventHandlerCallRef, EventRef, void *);
|
static pascal OSStatus MultiCartEventHandler (EventHandlerCallRef, EventRef, void *);
|
||||||
static pascal OSStatus MultiCartPaneEventHandler (EventHandlerCallRef, EventRef, void *);
|
static pascal OSStatus MultiCartPaneEventHandler (EventHandlerCallRef, EventRef, void *);
|
||||||
|
|
||||||
static int multiCartDragHilite;
|
static int multiCartDragHilite;
|
||||||
static Boolean multiCartDialogResult;
|
static Boolean multiCartDialogResult;
|
||||||
|
|
||||||
|
|
||||||
void InitMultiCart (void)
|
void InitMultiCart (void)
|
||||||
{
|
{
|
||||||
CFStringRef keyRef, pathRef;
|
CFStringRef keyRef, pathRef;
|
||||||
|
|
|
@ -222,6 +222,12 @@
|
||||||
static Handle GetScreenAsRawHandle (int, int);
|
static Handle GetScreenAsRawHandle (int, int);
|
||||||
static void ExportCGImageToPNGFile (CGImageRef, const char *);
|
static void ExportCGImageToPNGFile (CGImageRef, const char *);
|
||||||
|
|
||||||
|
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
|
||||||
|
typedef struct QDPict* QDPictRef;
|
||||||
|
extern "C" QDPictRef QDPictCreateWithProvider (CGDataProviderRef provider);
|
||||||
|
extern "C" void QDPictRelease (QDPictRef pictRef);
|
||||||
|
extern "C" OSStatus QDPictDrawToCGContext (CGContextRef ctx, CGRect rect, QDPictRef pictRef);
|
||||||
|
#endif
|
||||||
|
|
||||||
static Handle GetScreenAsRawHandle (int destWidth, int destHeight)
|
static Handle GetScreenAsRawHandle (int destWidth, int destHeight)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue