Mercurial > sdl-ios-xcode
comparison src/video/wincommon/SDL_syswm.c @ 1510:720f8bb49d7d
Win32 fixes
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 13 Mar 2006 02:06:33 +0000 |
parents | 4d005dfbb7f5 |
children | 782fd950bd46 c121d94672cb b0955ae208f3 |
comparison
equal
deleted
inserted
replaced
1509:678d105d4492 | 1510:720f8bb49d7d |
---|---|
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 LPWSTR lpszW = SDL_iconv_utf8_ucs2(title); | 233 LPWSTR lpszW = SDL_iconv_utf8_ucs2((char *)title); |
234 SetWindowText(SDL_Window, lpszW); | 234 SetWindowText(SDL_Window, lpszW); |
235 SDL_free(lpszW); | 235 SDL_free(lpszW); |
236 #else | 236 #else |
237 char *lpsz = SDL_iconv_utf8_latin1(title); | 237 char *lpsz = SDL_iconv_utf8_latin1((char *)title); |
238 SetWindowText(SDL_Window, lpsz); | 238 SetWindowText(SDL_Window, lpsz); |
239 SDL_free(lpsz); | 239 SDL_free(lpsz); |
240 #endif | 240 #endif |
241 } | 241 } |
242 | 242 |