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

@ -235,6 +235,9 @@ SDL_Error(SDL_errorcode code)
case SDL_UNSUPPORTED:
SDL_SetError("That operation is not supported");
break;
case SDL_INVALIDPARAM:
SDL_SetError("Parameter is invalid");
break;
default:
SDL_SetError("Unknown SDL error");
break;