mirror of
https://github.com/glfw/glfw.git
synced 2025-06-14 19:52:14 +00:00
Fix shibukawa's fix of tests/events
This commit is contained in:
parent
3386299e1f
commit
e2e88ef8aa
@ -458,6 +458,7 @@ static void preedit_callback(GLFWwindow* window, int strLength, unsigned int* st
|
||||
Slot* slot = glfwGetWindowUserPointer(window);
|
||||
int i, blockIndex = -1, blockCount = 0;
|
||||
int width, height;
|
||||
char encoded[5] = "";
|
||||
printf("%08x to %i at %0.3f: Preedit text ",
|
||||
counter++, slot->number, glfwGetTime());
|
||||
if (strLength == 0 || blockLength == 0) {
|
||||
@ -475,7 +476,8 @@ static void preedit_callback(GLFWwindow* window, int strLength, unsigned int* st
|
||||
printf("[");
|
||||
}
|
||||
}
|
||||
printf("%s", get_character_string(string[i]));
|
||||
encode_utf8(encoded, string[i]);
|
||||
printf("%s", encoded);
|
||||
blockCount--;
|
||||
}
|
||||
if (blockIndex == focusedBlock) {
|
||||
|
Loading…
Reference in New Issue
Block a user