1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 02:38:52 -05:00

Added UTF-8 window title support for Cocooa.

This commit is contained in:
Camilla Berglund 2012-02-04 02:15:17 +01:00
parent ee4f2386e7
commit e937c86893

View File

@ -476,9 +476,7 @@ static GLboolean createWindow(_GLFWwindow* window,
return GL_FALSE; return GL_FALSE;
} }
[window->NS.window setTitle:[NSString stringWithCString:wndconfig->title [window->NS.window setTitle:[NSString stringWithUTF8String:wndconfig->title]];
encoding:NSISOLatin1StringEncoding]];
[window->NS.window setContentView:[[GLFWContentView alloc] [window->NS.window setContentView:[[GLFWContentView alloc]
initWithGlfwWindow:window]]; initWithGlfwWindow:window]];
[window->NS.window setDelegate:window->NS.delegate]; [window->NS.window setDelegate:window->NS.delegate];
@ -779,8 +777,7 @@ void _glfwPlatformCloseWindow(_GLFWwindow* window)
void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char *title) void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char *title)
{ {
[window->NS.window setTitle:[NSString stringWithCString:title [window->NS.window setTitle:[NSString stringWithUTF8String:title]];
encoding:NSISOLatin1StringEncoding]];
} }
//======================================================================== //========================================================================