src/video/wincommon/SDL_syswm.c
changeset 1505 4d005dfbb7f5
parent 1481 deb22b9fe970
child 1510 720f8bb49d7d
     1.1 --- a/src/video/wincommon/SDL_syswm.c	Mon Mar 13 01:20:05 2006 +0000
     1.2 +++ b/src/video/wincommon/SDL_syswm.c	Mon Mar 13 01:33:58 2006 +0000
     1.3 @@ -230,12 +230,13 @@
     1.4  {
     1.5  #ifdef _WIN32_WCE
     1.6  	/* WinCE uses the UNICODE version */
     1.7 -	int nLen = SDL_strlen(title)+1;
     1.8 -	LPWSTR lpszW = alloca(nLen*2);
     1.9 -	MultiByteToWideChar(CP_ACP, 0, title, -1, lpszW, nLen);
    1.10 +	LPWSTR lpszW = SDL_iconv_utf8_ucs2(title);
    1.11  	SetWindowText(SDL_Window, lpszW);
    1.12 +	SDL_free(lpszW);
    1.13  #else
    1.14 -	SetWindowText(SDL_Window, title);
    1.15 +	char *lpsz = SDL_iconv_utf8_latin1(title);
    1.16 +	SetWindowText(SDL_Window, lpsz);
    1.17 +	SDL_free(lpsz);
    1.18  #endif
    1.19  }
    1.20