Fix preeditCusorPos init timing to align with other parameters

This commit is contained in:
Daijiro Fukuda 2022-05-24 14:19:06 +09:00
parent bf4d8aec54
commit 6ec3c85aee

View File

@ -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);