summaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-12-10 23:03:59 +0000
committerbjarni <bjarni@openttd.org>2005-12-10 23:03:59 +0000
commit1adc1738f71db328568a830e384185bd47c4a0fe (patch)
tree4799043dc3a50980134763ad405adda574693d1f /video
parentad756fff551aa1e63a6a54e382bad12adf901a5e (diff)
downloadopenttd-1adc1738f71db328568a830e384185bd47c4a0fe.tar.xz
(svn r3286) -Fix: [OSX] 10.2 works again and universal binaries got 10.2 as target by default
Diffstat (limited to 'video')
-rw-r--r--video/cocoa_v.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/cocoa_v.m b/video/cocoa_v.m
index 2dbc2c478..a0b7f50aa 100644
--- a/video/cocoa_v.m
+++ b/video/cocoa_v.m
@@ -27,9 +27,11 @@ extern void ShowMenuBar(void);
extern void HideMenuBar(void);
/* Disables a warning. This is needed since the method exists but has been dropped from the header, supposedly as of 10.4. */
+#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4)
@interface NSApplication(NSAppleMenu)
- (void)setAppleMenu:(NSMenu *)menu;
@end
+#endif
/* Name conflict */
@@ -1180,7 +1182,7 @@ static const char *QZ_SetVideoWindowed (uint width, uint height) {
return "Could not create the Cocoa window";
snprintf(caption, sizeof(caption), "OpenTTD %s", _openttd_revision);
- nsscaption = [ [ NSString alloc ] initWithCString:caption encoding:NSASCIIStringEncoding ];
+ nsscaption = [ [ NSString alloc ] initWithCString:caption ];
[ _cocoa_video_data.window setTitle:nsscaption ];
[ _cocoa_video_data.window setMiniwindowTitle:nsscaption ];
[ nsscaption release ];