comparison 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
comparison
equal deleted inserted replaced
1718:ed4d4f1ea201 1719:5b9f50c957ed
31 #include <windows.h> 31 #include <windows.h>
32 32
33 #include "SDL_win32events.h" 33 #include "SDL_win32events.h"
34 #include "SDL_win32window.h" 34 #include "SDL_win32window.h"
35 35
36 #ifdef UNICODE
37 #define WIN_StringToUTF8(S) SDL_iconv_string("UTF-8", "UCS-2", (char *)S, (wcslen(S)+1)*sizeof(WCHAR))
38 #define WIN_UTF8ToString(S) (WCHAR *)SDL_iconv_string("UCS-2", "UTF-8", (char *)S, SDL_strlen(S)+1)
39 #else
40 #define WIN_StringToUTF8(S) SDL_iconv_string("UTF-8", "ASCII", (char *)S, (strlen(S)+1))
41 #define WIN_UTF8ToString(S) SDL_iconv_string("ASCII", "UTF-8", (char *)S, SDL_strlen(S)+1)
42 #endif
43
36 /* Private display data */ 44 /* Private display data */
37 45
38 struct SDL_PrivateVideoData 46 struct SDL_PrivateVideoData
39 { 47 {
40 }; 48 };