Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix compilation issue on 10.5

  • Loading branch information...
commit e11ed81f726c6e40504cc5ad7b028a760a365c68 1 parent b0333df
@mantognini mantognini authored
View
4 examples/cocoa/CocoaAppDelegate.h
@@ -36,7 +36,11 @@
struct SFMLmainWindow;
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
@interface CocoaAppDelegate : NSObject <NSApplicationDelegate> {
+#else
+@interface CocoaAppDelegate : NSObject {
+#endif
@private
NSWindow *m_window;
NSView *m_sfmlView;
View
4 src/SFML/Window/OSX/cg_sf_conversion.cpp
@@ -103,7 +103,7 @@ VideoMode convertCGModeToSFMode(CFDictionaryRef dictionary)
CFNumberGetValue(cfnumber, kCFNumberIntType, &(sfmode.height));
cfnumber = (CFNumberRef)CFDictionaryGetValue(dictionary, kCGDisplayBitsPerPixel);
- CFNumberGetValue(cfnumber, kCFNumberIntType, &(sfmode.BitsPerPixel));
+ CFNumberGetValue(cfnumber, kCFNumberIntType, &(sfmode.bitsPerPixel));
return sfmode;
}
@@ -127,7 +127,7 @@ CFDictionaryRef convertSFModeToCGMode(VideoMode sfmode)
// If sfmode is in VideoMode::GetFullscreenModes
// then this should be an exact match (see NULL parameter doc).
return CGDisplayBestModeForParameters(CGMainDisplayID(),
- sfmode.BitsPerPixel,
+ sfmode.bitsPerPixel,
sfmode.width,
sfmode.height,
NULL);

0 comments on commit e11ed81

Please sign in to comment.
Something went wrong with that request. Please try again.