src/video/wincommon/SDL_syswm.c
changeset 1505 4d005dfbb7f5
parent 1481 deb22b9fe970
child 1510 720f8bb49d7d
equal deleted inserted replaced
1504:7b4b31075f67 1505:4d005dfbb7f5
   228 
   228 
   229 void WIN_SetWMCaption(_THIS, const char *title, const char *icon)
   229 void WIN_SetWMCaption(_THIS, const char *title, const char *icon)
   230 {
   230 {
   231 #ifdef _WIN32_WCE
   231 #ifdef _WIN32_WCE
   232 	/* WinCE uses the UNICODE version */
   232 	/* WinCE uses the UNICODE version */
   233 	int nLen = SDL_strlen(title)+1;
   233 	LPWSTR lpszW = SDL_iconv_utf8_ucs2(title);
   234 	LPWSTR lpszW = alloca(nLen*2);
       
   235 	MultiByteToWideChar(CP_ACP, 0, title, -1, lpszW, nLen);
       
   236 	SetWindowText(SDL_Window, lpszW);
   234 	SetWindowText(SDL_Window, lpszW);
       
   235 	SDL_free(lpszW);
   237 #else
   236 #else
   238 	SetWindowText(SDL_Window, title);
   237 	char *lpsz = SDL_iconv_utf8_latin1(title);
       
   238 	SetWindowText(SDL_Window, lpsz);
       
   239 	SDL_free(lpsz);
   239 #endif
   240 #endif
   240 }
   241 }
   241 
   242 
   242 int WIN_IconifyWindow(_THIS)
   243 int WIN_IconifyWindow(_THIS)
   243 {
   244 {