Patched to compile on Windows.

--HG--
branch : SDL-1.2
This commit is contained in:
Ryan C. Gordon 2011-09-11 10:48:36 -04:00
parent 6e00ea067e
commit 314fc920c2
2 changed files with 2 additions and 2 deletions

View file

@ -141,7 +141,7 @@ extern void DX5_SoundFocus(HWND window);
LRESULT CALLBACK WinMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
/* JFP: Implementation of ToUnicode() that works on 9x/ME/2K/XP */
typedef int (WINAPI *ToUnicodeFN)(UINT, UINT, PBYTE, LPWSTR, int, UINT);
typedef int (WINAPI *ToUnicodeFN)(UINT, UINT, const BYTE *, LPWSTR, int, UINT);
extern ToUnicodeFN SDL_ToUnicode;

View file

@ -816,7 +816,7 @@ static int GetCodePage()
return cp;
}
static int WINAPI ToUnicode9xME(UINT vkey, UINT scancode, const PBYTE keystate, LPWSTR wchars, int wsize, UINT flags)
static int WINAPI ToUnicode9xME(UINT vkey, UINT scancode, const BYTE *keystate, LPWSTR wchars, int wsize, UINT flags)
{
BYTE chars[2];