浏览代码

Added output of monitor position.

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

+ 3 - 0
tests/modes.c

@@ -100,6 +100,9 @@ static void list_modes(GLFWmonitor monitor)
 
     printf("Name: %s\n", glfwGetMonitorString(monitor, GLFW_MONITOR_NAME));
     printf("Current mode: %s\n", format_mode(&mode));
+    printf("Virtual position: %i %i\n",
+           glfwGetMonitorParam(monitor, GLFW_MONITOR_SCREEN_POS_X),
+           glfwGetMonitorParam(monitor, GLFW_MONITOR_SCREEN_POS_Y));
     printf("Physical size: %i x %i\n",
            glfwGetMonitorParam(monitor, GLFW_MONITOR_PHYSICAL_WIDTH),
            glfwGetMonitorParam(monitor, GLFW_MONITOR_PHYSICAL_HEIGHT));