(svn r17711) -Codechange: [OSX] Don't use deprecated methods to construct a Cocoa string.
This commit is contained in:
@@ -402,7 +402,7 @@ bool WindowQuickdrawSubdriver::SetVideoMode(int width, int height)
|
||||
[ window setDriver:this ];
|
||||
|
||||
snprintf(caption, sizeof(caption), "OpenTTD %s", _openttd_revision);
|
||||
nsscaption = [ [ NSString alloc ] initWithCString:caption ];
|
||||
nsscaption = [ [ NSString alloc ] initWithUTF8String:caption ];
|
||||
[ window setTitle:nsscaption ];
|
||||
[ window setMiniwindowTitle:nsscaption ];
|
||||
[ nsscaption release ];
|
||||
|
||||
Reference in New Issue
Block a user