Use SDL_iscntrl() call instead of manual code that is doing the same (#8593)

main
Dimitriy Ryazantcev 2023-11-21 18:36:32 +02:00 committed by GitHub
parent fd91178d7f
commit 0413f6fc49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1063,7 +1063,7 @@ int SDL_SendKeyboardText(const char *text)
int posted;
/* Don't post text events for unprintable characters */
if ((unsigned char)*text < ' ' || *text == 127) {
if (SDL_iscntrl((int)*text)) {
return 0;
}