Changed StopTextInput to take an SDL_Window parameter.

This commit is contained in:
dewyatt 2010-07-10 13:15:47 -04:00
parent 2beaeb4080
commit 2f1a5c4653
6 changed files with 7 additions and 7 deletions

View file

@ -147,7 +147,7 @@ extern DECLSPEC void SDLCALL SDL_StartTextInput(SDL_Window *window);
*
* \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.

View file

@ -1744,7 +1744,7 @@ SDL_EnableUNICODE(int enable)
break;
case 0:
SDL_enabled_UNICODE = 0;
SDL_StopTextInput();
SDL_StopTextInput(SDL_VideoWindow);
break;
}
return previous;

View file

@ -300,7 +300,7 @@ struct SDL_VideoDevice
/* Text input */
void (*StartTextInput) (_THIS, SDL_Window *window);
void (*StopTextInput) (_THIS);
void (*StopTextInput) (_THIS, SDL_Window *window);
void (*SetTextInputRect) (_THIS, SDL_Rect *rect);
/* * * */

View file

@ -3395,10 +3395,10 @@ SDL_StartTextInput(SDL_Window *window)
}
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);

View file

@ -130,7 +130,7 @@ WIN_StartTextInput(_THIS, SDL_Window *window)
}
void
WIN_StopTextInput(_THIS)
WIN_StopTextInput(_THIS, SDL_Window *window)
{
}

View file

@ -32,7 +32,7 @@ extern void WIN_UpdateKeymap(void);
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 */