mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 10:05:10 +00:00
Add reminder for why events test is not closing
This commit is contained in:
parent
08f01c31a0
commit
de23429455
@ -320,6 +320,12 @@ static void window_close_callback(GLFWwindow* window)
|
|||||||
printf("%08x to %i at %0.3f: Window close\n",
|
printf("%08x to %i at %0.3f: Window close\n",
|
||||||
counter++, slot->number, glfwGetTime());
|
counter++, slot->number, glfwGetTime());
|
||||||
|
|
||||||
|
if (!slot->closeable)
|
||||||
|
{
|
||||||
|
printf("(( closing is disabled, press %s to re-enable )\n",
|
||||||
|
glfwGetKeyName(GLFW_KEY_C, 0));
|
||||||
|
}
|
||||||
|
|
||||||
glfwSetWindowShouldClose(window, slot->closeable);
|
glfwSetWindowShouldClose(window, slot->closeable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user