Explorar o código

SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl

Ozkan Sezer %!s(int64=2) %!d(string=hai) anos
pai
achega
63d4bd4e57
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/events/SDL_keyboard.c

+ 1 - 1
src/events/SDL_keyboard.c

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