From 314fc920c22dcd524cbae2550d96dd90f9b8b0a4 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 11 Sep 2011 10:48:36 -0400 Subject: [PATCH] Patched to compile on Windows. --HG-- branch : SDL-1.2 --- src/video/wincommon/SDL_lowvideo.h | 2 +- src/video/wincommon/SDL_sysevents.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/wincommon/SDL_lowvideo.h b/src/video/wincommon/SDL_lowvideo.h index 940995c4c..26800773d 100644 --- a/src/video/wincommon/SDL_lowvideo.h +++ b/src/video/wincommon/SDL_lowvideo.h @@ -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; diff --git a/src/video/wincommon/SDL_sysevents.c b/src/video/wincommon/SDL_sysevents.c index 8af88f828..37d73d429 100644 --- a/src/video/wincommon/SDL_sysevents.c +++ b/src/video/wincommon/SDL_sysevents.c @@ -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];