From 6ec3c85aee0d20b21645b06ca7b3adc8bd935e38 Mon Sep 17 00:00:00 2001 From: Daijiro Fukuda Date: Tue, 24 May 2022 14:19:06 +0900 Subject: [PATCH] Fix preeditCusorPos init timing to align with other parameters --- src/window.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/window.c b/src/window.c index e153bc27..17410e13 100644 --- a/src/window.c +++ b/src/window.c @@ -215,6 +215,10 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, window->numer = GLFW_DONT_CARE; window->denom = GLFW_DONT_CARE; + window->preeditCursorPosX = 0; + window->preeditCursorPosY = height; + window->preeditCursorHeight = 0; + if (!_glfw.platform.createWindow(window, &wndconfig, &ctxconfig, &fbconfig)) { glfwDestroyWindow((GLFWwindow*) window);