Commit 2f1a5c46 authored by dewyatt's avatar dewyatt

Changed StopTextInput to take an SDL_Window parameter.

parent 2beaeb40
......@@ -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.
......
......@@ -1744,7 +1744,7 @@ SDL_EnableUNICODE(int enable)
break;
case 0:
SDL_enabled_UNICODE = 0;
SDL_StopTextInput();
SDL_StopTextInput(SDL_VideoWindow);
break;
}
return previous;
......
......@@ -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);
/* * * */
......
......@@ -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);
......
......@@ -130,7 +130,7 @@ WIN_StartTextInput(_THIS, SDL_Window *window)
}
void
WIN_StopTextInput(_THIS)
WIN_StopTextInput(_THIS, SDL_Window *window)
{
}
......
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment