Skip to content

Commit

Permalink
Date: Sun, 29 Aug 2004 20:55:54 +0200
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slouken committed Aug 30, 2004
1 parent 1c5c280 commit 3366f02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/quartz/SDL_QuartzWM.m
Expand Up @@ -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 ];
}
Expand Down

0 comments on commit 3366f02

Please sign in to comment.