Mercurial > sdl-ios-xcode
changeset 140:3c35d8f160bd
Fixed compiling on Windows CE
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 09 Aug 2001 05:51:34 +0000 |
parents | ef23a1bf1244 |
children | 218325a2653f |
files | src/video/windib/SDL_dibevents.c |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/windib/SDL_dibevents.c Thu Aug 09 05:34:17 2001 +0000 +++ b/src/video/windib/SDL_dibevents.c Thu Aug 09 05:51:34 2001 +0000 @@ -90,14 +90,14 @@ #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 m; - 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) ) { + 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 {