comparison src/video/quartz/SDL_QuartzWM.m @ 951:121f56c1277d

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.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 30 Aug 2004 04:21:51 +0000
parents af585d6efec8
children 6f5c8bd997aa
comparison
equal deleted inserted replaced
950:b7a5c1b64829 951:121f56c1277d
231 void QZ_SetCaption (_THIS, const char *title, const char *icon) { 231 void QZ_SetCaption (_THIS, const char *title, const char *icon) {
232 232
233 if ( qz_window != nil ) { 233 if ( qz_window != nil ) {
234 NSString *string; 234 NSString *string;
235 if ( title != NULL ) { 235 if ( title != NULL ) {
236 string = [ [ NSString alloc ] initWithCString:title ]; 236 string = [ [ NSString alloc ] initWithUTF8String:title ];
237 [ qz_window setTitle:string ]; 237 [ qz_window setTitle:string ];
238 [ string release ]; 238 [ string release ];
239 } 239 }
240 if ( icon != NULL ) { 240 if ( icon != NULL ) {
241 string = [ [ NSString alloc ] initWithCString:icon ]; 241 string = [ [ NSString alloc ] initWithUTF8String:icon ];
242 [ qz_window setMiniwindowTitle:string ]; 242 [ qz_window setMiniwindowTitle:string ];
243 [ string release ]; 243 [ string release ];
244 } 244 }
245 } 245 }
246 } 246 }