Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_win32window.c @ 4733:983eb9d5ed31
Change SDL to not use DefWindowProc as the window class' window procedure.
For some reason, having lpfnWndProc=DefWindowProc during window class registration causes IME input to not work in windows.
With this small change, IME input should now work in SDL windows but not in fullscreen mode.
author | dewyatt |
---|---|
date | Tue, 08 Jun 2010 05:22:49 -0400 |
parents | f7b03b6838cb |
children | 8568ebdb5f1f |
comparison
equal
deleted
inserted
replaced
4732:e1307be6cb9e | 4733:983eb9d5ed31 |
---|---|
110 return -1; | 110 return -1; |
111 } | 111 } |
112 | 112 |
113 /* Set up the window proc function */ | 113 /* Set up the window proc function */ |
114 data->wndproc = (WNDPROC) GetWindowLongPtr(hwnd, GWLP_WNDPROC); | 114 data->wndproc = (WNDPROC) GetWindowLongPtr(hwnd, GWLP_WNDPROC); |
115 if (data->wndproc == DefWindowProc) { | 115 if (data->wndproc == WIN_WindowProc) { |
116 data->wndproc = NULL; | 116 data->wndproc = NULL; |
117 } | 117 } |
118 SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR) WIN_WindowProc); | 118 SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR) WIN_WindowProc); |
119 | 119 |
120 /* Fill in the SDL window with the window data */ | 120 /* Fill in the SDL window with the window data */ |