# HG changeset patch # User dewyatt # Date 1278782147 14400 # Node ID f3908cd80b10e495d1d46526569af70e85733827 # Parent 22aa6a631d34ebbea30e42b5a1ae19003752d930 Changed StopTextInput to take an SDL_Window parameter. diff -r 22aa6a631d34 -r f3908cd80b10 include/SDL_keyboard.h --- a/include/SDL_keyboard.h Thu Jul 08 01:35:47 2010 -0400 +++ b/include/SDL_keyboard.h Sat Jul 10 13:15:47 2010 -0400 @@ -147,7 +147,7 @@ * * \sa SDL_StartTextInput() */ -extern DECLSPEC void SDLCALL SDL_StopTextInput(void); +extern DECLSPEC void SDLCALL SDL_StopTextInput(SDL_Window *window); /** * \brief Set the rectangle used to type Unicode text inputs. diff -r 22aa6a631d34 -r f3908cd80b10 src/SDL_compat.c --- a/src/SDL_compat.c Thu Jul 08 01:35:47 2010 -0400 +++ b/src/SDL_compat.c Sat Jul 10 13:15:47 2010 -0400 @@ -1744,7 +1744,7 @@ break; case 0: SDL_enabled_UNICODE = 0; - SDL_StopTextInput(); + SDL_StopTextInput(SDL_VideoWindow); break; } return previous; diff -r 22aa6a631d34 -r f3908cd80b10 src/video/SDL_sysvideo.h --- a/src/video/SDL_sysvideo.h Thu Jul 08 01:35:47 2010 -0400 +++ b/src/video/SDL_sysvideo.h Sat Jul 10 13:15:47 2010 -0400 @@ -300,7 +300,7 @@ /* Text input */ void (*StartTextInput) (_THIS, SDL_Window *window); - void (*StopTextInput) (_THIS); + void (*StopTextInput) (_THIS, SDL_Window *window); void (*SetTextInputRect) (_THIS, SDL_Rect *rect); /* * * */ diff -r 22aa6a631d34 -r f3908cd80b10 src/video/SDL_video.c --- a/src/video/SDL_video.c Thu Jul 08 01:35:47 2010 -0400 +++ b/src/video/SDL_video.c Sat Jul 10 13:15:47 2010 -0400 @@ -3395,10 +3395,10 @@ } void -SDL_StopTextInput(void) +SDL_StopTextInput(SDL_Window *window) { if (_this && _this->StopTextInput) { - _this->StopTextInput(_this); + _this->StopTextInput(_this, window); } SDL_EventState(SDL_TEXTINPUT, SDL_DISABLE); SDL_EventState(SDL_TEXTEDITING, SDL_DISABLE); diff -r 22aa6a631d34 -r f3908cd80b10 src/video/win32/SDL_win32keyboard.c --- a/src/video/win32/SDL_win32keyboard.c Thu Jul 08 01:35:47 2010 -0400 +++ b/src/video/win32/SDL_win32keyboard.c Sat Jul 10 13:15:47 2010 -0400 @@ -130,7 +130,7 @@ } void -WIN_StopTextInput(_THIS) +WIN_StopTextInput(_THIS, SDL_Window *window) { } diff -r 22aa6a631d34 -r f3908cd80b10 src/video/win32/SDL_win32keyboard.h --- a/src/video/win32/SDL_win32keyboard.h Thu Jul 08 01:35:47 2010 -0400 +++ b/src/video/win32/SDL_win32keyboard.h Sat Jul 10 13:15:47 2010 -0400 @@ -32,7 +32,7 @@ extern void WIN_QuitKeyboard(_THIS); extern void WIN_StartTextInput(_THIS, SDL_Window *window); -extern void WIN_StopTextInput(_THIS); +extern void WIN_StopTextInput(_THIS, SDL_Window *window); extern void WIN_SetTextInputRect(_THIS, SDL_Rect *rect); #endif /* _SDL_win32keyboard_h */