1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 12:18:51 -05:00

Added output of monitor position.

This commit is contained in:
Camilla Berglund 2012-09-13 16:47:59 +02:00
parent a0305affeb
commit d21e79642b

View File

@ -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));