mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 04:54:35 +00:00
Improved reopen test input.
This commit is contained in:
parent
67e7d8ca5f
commit
e5a4bea4df
@ -85,9 +85,17 @@ static GLFWwindow* open_window(int width, int height, GLFWmonitor* monitor)
|
|||||||
glfwSetWindowCloseCallback(window, window_close_callback);
|
glfwSetWindowCloseCallback(window, window_close_callback);
|
||||||
glfwSetKeyCallback(window, key_callback);
|
glfwSetKeyCallback(window, key_callback);
|
||||||
|
|
||||||
printf("Opening %s mode window took %0.3f seconds\n",
|
if (monitor)
|
||||||
monitor ? "fullscreen" : "windowed",
|
{
|
||||||
glfwGetTime() - base);
|
printf("Opening full screen window on monitor %s took %0.3f seconds\n",
|
||||||
|
glfwGetMonitorName(monitor),
|
||||||
|
glfwGetTime() - base);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf("Opening regular window took %0.3f seconds\n",
|
||||||
|
glfwGetTime() - base);
|
||||||
|
}
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user