From e5a4bea4dfeeda4d3d7fdc9d383baa84c489bc19 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 19 May 2013 09:18:57 +0200 Subject: [PATCH] Improved reopen test input. --- tests/reopen.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tests/reopen.c b/tests/reopen.c index ea64f2bb..86f3c7fd 100644 --- a/tests/reopen.c +++ b/tests/reopen.c @@ -85,9 +85,17 @@ static GLFWwindow* open_window(int width, int height, GLFWmonitor* monitor) glfwSetWindowCloseCallback(window, window_close_callback); glfwSetKeyCallback(window, key_callback); - printf("Opening %s mode window took %0.3f seconds\n", - monitor ? "fullscreen" : "windowed", - glfwGetTime() - base); + if (monitor) + { + 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; }