浏览代码

Improved reopen test input.

Camilla Berglund 12 年之前
父节点
当前提交
e5a4bea4df
共有 1 个文件被更改,包括 11 次插入3 次删除
  1. 11 3
      tests/reopen.c

+ 11 - 3
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;
 }