[Commits] SDL: Patched to compile on Windows.
libsdl.org revision control
commits-owner at libsdl.org
Sun Sep 11 07:49:47 PDT 2011
details: http://hg.libsdl.org/SDL/rev/9086ec040519
changeset: 5891:9086ec040519
user: Ryan C. Gordon <icculus at icculus.org>
date: Sun Sep 11 10:48:36 2011 -0400
description:
Patched to compile on Windows.
diffstat:
src/video/wincommon/SDL_lowvideo.h | 2 +-
src/video/wincommon/SDL_sysevents.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 9c9e8744e887 -r 9086ec040519 src/video/wincommon/SDL_lowvideo.h
--- a/src/video/wincommon/SDL_lowvideo.h Sun Sep 11 04:38:50 2011 -0400
+++ b/src/video/wincommon/SDL_lowvideo.h Sun Sep 11 10:48:36 2011 -0400
@@ -141,7 +141,7 @@
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 -r 9c9e8744e887 -r 9086ec040519 src/video/wincommon/SDL_sysevents.c
--- a/src/video/wincommon/SDL_sysevents.c Sun Sep 11 04:38:50 2011 -0400
+++ b/src/video/wincommon/SDL_sysevents.c Sun Sep 11 10:48:36 2011 -0400
@@ -816,7 +816,7 @@
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];
More information about the commits
mailing list