Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_win32events.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 | faa9fc8e7f67 |
children | 0c39b36dd104 |
comparison
equal
deleted
inserted
replaced
4732:e1307be6cb9e | 4733:983eb9d5ed31 |
---|---|
701 class.lpszMenuName = NULL; | 701 class.lpszMenuName = NULL; |
702 class.lpszClassName = SDL_Appname; | 702 class.lpszClassName = SDL_Appname; |
703 class.hbrBackground = NULL; | 703 class.hbrBackground = NULL; |
704 class.hInstance = SDL_Instance; | 704 class.hInstance = SDL_Instance; |
705 class.style = SDL_Appstyle; | 705 class.style = SDL_Appstyle; |
706 class.lpfnWndProc = DefWindowProc; | 706 class.lpfnWndProc = WIN_WindowProc; |
707 class.cbWndExtra = 0; | 707 class.cbWndExtra = 0; |
708 class.cbClsExtra = 0; | 708 class.cbClsExtra = 0; |
709 if (!RegisterClass(&class)) { | 709 if (!RegisterClass(&class)) { |
710 SDL_SetError("Couldn't register application class"); | 710 SDL_SetError("Couldn't register application class"); |
711 return (-1); | 711 return (-1); |