Commit d8774258 authored by Sam Lantinga's avatar Sam Lantinga

Date: Sun, 29 Aug 2004 20:55:54 +0200

From: Tomas Kovar
Subject: [SDL] [PATCH] UTF-8 support for SDL_WM_SetCaption in OSX

Recently, there was patch that added UTF-8 support for
SDL_WM_SetCaption in X11 backend. This patch does the same for Quartz
(OSX) backend.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40952
parent 24361cbe
......@@ -233,12 +233,12 @@ void QZ_SetCaption (_THIS, const char *title, const char *icon) {
if ( qz_window != nil ) {
NSString *string;
if ( title != NULL ) {
string = [ [ NSString alloc ] initWithCString:title ];
string = [ [ NSString alloc ] initWithUTF8String:title ];
[ qz_window setTitle:string ];
[ string release ];
}
if ( icon != NULL ) {
string = [ [ NSString alloc ] initWithCString:icon ];
string = [ [ NSString alloc ] initWithUTF8String:icon ];
[ qz_window setMiniwindowTitle:string ];
[ string release ];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment