Mercurial > sdl-ios-xcode
diff src/video/win32/SDL_win32video.h @ 1719:5b9f50c957ed SDL-1.3
You can now create multiple windows on Win32
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 28 Jun 2006 08:12:07 +0000 |
parents | ed4d4f1ea201 |
children | a1ebb17f9c52 |
line wrap: on
line diff
--- a/src/video/win32/SDL_win32video.h Tue Jun 27 07:46:36 2006 +0000 +++ b/src/video/win32/SDL_win32video.h Wed Jun 28 08:12:07 2006 +0000 @@ -33,6 +33,14 @@ #include "SDL_win32events.h" #include "SDL_win32window.h" +#ifdef UNICODE +#define WIN_StringToUTF8(S) SDL_iconv_string("UTF-8", "UCS-2", (char *)S, (wcslen(S)+1)*sizeof(WCHAR)) +#define WIN_UTF8ToString(S) (WCHAR *)SDL_iconv_string("UCS-2", "UTF-8", (char *)S, SDL_strlen(S)+1) +#else +#define WIN_StringToUTF8(S) SDL_iconv_string("UTF-8", "ASCII", (char *)S, (strlen(S)+1)) +#define WIN_UTF8ToString(S) SDL_iconv_string("ASCII", "UTF-8", (char *)S, SDL_strlen(S)+1) +#endif + /* Private display data */ struct SDL_PrivateVideoData