Correctly handle Unicode Replacement Characters

This commit is contained in:
Michael Martin
2020-12-26 19:06:47 -08:00
parent 57b887c8d8
commit c194cd2ad9
+1 -1
View File
@@ -479,7 +479,7 @@ ProcessInputEvent (const SDL_Event *Event)
/* Out of the BMP, won't fit in a UniChar */ /* Out of the BMP, won't fit in a UniChar */
/* Use the replacement character instead */ /* Use the replacement character instead */
map_key = 0xFFFD; map_key = 0xFFFD;
while (Event->text.text[i] > 0x7F) while ((UniChar)Event->text.text[i] > 0x7F)
{ {
++i; ++i;
} }