Fix compile on osx

Added SetTitle support to cocoa


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1588 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee
2008-12-18 21:40:50 +00:00
parent 3d9c903a3b
commit fa00041f77
6 changed files with 15 additions and 9 deletions

View File

@ -65,10 +65,13 @@ NSWindow *cocoaGLCreateWindow(int w,int h)
return window;
}
void cocoaGLSetTitle()
void cocoaGLSetTitle(NSWindow *win, const char *title)
{
//todo
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
[win setTitle: [[[NSString alloc] initWithCString: title encoding: NSASCIIStringEncoding] autorelease]];
[pool release];
}
void cocoaGLMakeCurrent(NSOpenGLContext *ctx, NSWindow *win)