Skip to content

Commit

Permalink
Fixed compiling on Windows CE
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 9, 2001
1 parent e9a6115 commit fd7f14a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/video/windib/SDL_dibevents.c
Expand Up @@ -90,14 +90,14 @@ LONG
#ifdef NO_GETKEYBOARDSTATE
/* this is the workaround for the missing ToAscii() and ToUnicode() in CE (not necessary at KEYUP!) */
if ( SDL_TranslateUNICODE ) {
MSG msg;

msg.hwnd = hwnd;
msg.message = msg;
msg.wParam = wParam;
msg.lParam = lParam;
msg.time = 0;
if ( TranslateMessage(&m) && PeekMessage(&msg, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) {
MSG m;

m.hwnd = hwnd;
m.message = msg;
m.wParam = wParam;
m.lParam = lParam;
m.time = 0;
if ( TranslateMessage(&m) && PeekMessage(&m, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) {
GetMessage(&m, hwnd, 0, WM_USER);
wParam = m.wParam;
} else {
Expand Down

0 comments on commit fd7f14a

Please sign in to comment.