Added monitor physical dimensions to output.

This commit is contained in:
Camilla Berglund 2012-07-06 14:08:01 +02:00
parent db066b4f46
commit 247ee76b5c

View File

@ -118,7 +118,10 @@ static void list_modes(GLFWmonitor monitor)
GLFWvidmode* modes = get_video_modes(monitor, &count);
printf("Monitor %s:\n", glfwGetMonitorString(monitor, GLFW_MONITOR_NAME));
printf("Monitor %s (%ix%i mm):\n",
glfwGetMonitorString(monitor, GLFW_MONITOR_NAME),
glfwGetMonitorParam(monitor, GLFW_MONITOR_PHYSICAL_WIDTH),
glfwGetMonitorParam(monitor, GLFW_MONITOR_PHYSICAL_HEIGHT));
for (i = 0; i < count; i++)
{