Add new internal error message for invalid parameters; add validation of input rect in SDL_SetTextInputRect; add test cases for SDL_SetTextInputRect to keyboard suite

This commit is contained in:
Andreas Schiffler 2013-01-11 20:36:39 -08:00
parent 054a17097d
commit a20096403e
6 changed files with 156 additions and 1 deletions

View file

@ -212,6 +212,12 @@ void
WIN_SetTextInputRect(_THIS, SDL_Rect *rect)
{
SDL_VideoData *videodata = (SDL_VideoData *)_this->driverdata;
if (!rect) {
SDL_InvalidParamError();
return;
}
videodata->ime_rect = *rect;
}