mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Fix compilation issue on 10.5
This commit is contained in:
parent
b0333dfc16
commit
e11ed81f72
@ -36,7 +36,11 @@
|
|||||||
|
|
||||||
struct SFMLmainWindow;
|
struct SFMLmainWindow;
|
||||||
|
|
||||||
|
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
|
||||||
@interface CocoaAppDelegate : NSObject <NSApplicationDelegate> {
|
@interface CocoaAppDelegate : NSObject <NSApplicationDelegate> {
|
||||||
|
#else
|
||||||
|
@interface CocoaAppDelegate : NSObject {
|
||||||
|
#endif
|
||||||
@private
|
@private
|
||||||
NSWindow *m_window;
|
NSWindow *m_window;
|
||||||
NSView *m_sfmlView;
|
NSView *m_sfmlView;
|
||||||
|
@ -103,7 +103,7 @@ VideoMode convertCGModeToSFMode(CFDictionaryRef dictionary)
|
|||||||
CFNumberGetValue(cfnumber, kCFNumberIntType, &(sfmode.height));
|
CFNumberGetValue(cfnumber, kCFNumberIntType, &(sfmode.height));
|
||||||
|
|
||||||
cfnumber = (CFNumberRef)CFDictionaryGetValue(dictionary, kCGDisplayBitsPerPixel);
|
cfnumber = (CFNumberRef)CFDictionaryGetValue(dictionary, kCGDisplayBitsPerPixel);
|
||||||
CFNumberGetValue(cfnumber, kCFNumberIntType, &(sfmode.BitsPerPixel));
|
CFNumberGetValue(cfnumber, kCFNumberIntType, &(sfmode.bitsPerPixel));
|
||||||
|
|
||||||
return sfmode;
|
return sfmode;
|
||||||
}
|
}
|
||||||
@ -127,7 +127,7 @@ CFDictionaryRef convertSFModeToCGMode(VideoMode sfmode)
|
|||||||
// If sfmode is in VideoMode::GetFullscreenModes
|
// If sfmode is in VideoMode::GetFullscreenModes
|
||||||
// then this should be an exact match (see NULL parameter doc).
|
// then this should be an exact match (see NULL parameter doc).
|
||||||
return CGDisplayBestModeForParameters(CGMainDisplayID(),
|
return CGDisplayBestModeForParameters(CGMainDisplayID(),
|
||||||
sfmode.BitsPerPixel,
|
sfmode.bitsPerPixel,
|
||||||
sfmode.width,
|
sfmode.width,
|
||||||
sfmode.height,
|
sfmode.height,
|
||||||
NULL);
|
NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user