comparison src/video/wincommon/SDL_syswm.c @ 36:13ee9f4834ea

Windows CE patches contributed by Rainer Loritz
author Sam Lantinga <slouken@lokigames.com>
date Wed, 23 May 2001 23:35:10 +0000
parents 74212992fb08
children e8157fcb3114
comparison
equal deleted inserted replaced
35:d3bc792e136d 36:13ee9f4834ea
211 211
212 void WIN_SetWMCaption(_THIS, const char *title, const char *icon) 212 void WIN_SetWMCaption(_THIS, const char *title, const char *icon)
213 { 213 {
214 #ifdef _WIN32_WCE 214 #ifdef _WIN32_WCE
215 /* WinCE uses the UNICODE version */ 215 /* WinCE uses the UNICODE version */
216 int nLen = strlen(title); 216 int nLen = strlen(title)+1;
217 LPWSTR lpszW = alloca((nLen+1)*2); 217 LPWSTR lpszW = alloca(nLen*2);
218 MultiByteToWideChar(CP_ACP, 0, title, -1, lpszW, nLen); 218 MultiByteToWideChar(CP_ACP, 0, title, -1, lpszW, nLen);
219 SetWindowText(SDL_Window, lpszW); 219 SetWindowText(SDL_Window, lpszW);
220 #else 220 #else
221 SetWindowText(SDL_Window, title); 221 SetWindowText(SDL_Window, title);
222 #endif 222 #endif