Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Changed StopTextInput to take an SDL_Window parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
dewyatt committed Jul 10, 2010
1 parent cbd5b5b commit 3910703
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion include/SDL_keyboard.h
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/SDL_compat.c
Expand Up @@ -1744,7 +1744,7 @@ SDL_EnableUNICODE(int enable)
break;
case 0:
SDL_enabled_UNICODE = 0;
SDL_StopTextInput();
SDL_StopTextInput(SDL_VideoWindow);
break;
}
return previous;
Expand Down
2 changes: 1 addition & 1 deletion src/video/SDL_sysvideo.h
Expand Up @@ -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);

/* * * */
Expand Down
4 changes: 2 additions & 2 deletions src/video/SDL_video.c
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/video/win32/SDL_win32keyboard.c
Expand Up @@ -130,7 +130,7 @@ WIN_StartTextInput(_THIS, SDL_Window *window)
}

void
WIN_StopTextInput(_THIS)
WIN_StopTextInput(_THIS, SDL_Window *window)
{

}
Expand Down
2 changes: 1 addition & 1 deletion src/video/win32/SDL_win32keyboard.h
Expand Up @@ -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 */
Expand Down

0 comments on commit 3910703

Please sign in to comment.