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:
parent
054a17097d
commit
a20096403e
6 changed files with 156 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue