From 2b9f54d65098ae6e838a21bd1e75a48e0b2e1083 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 30 Aug 2012 02:12:02 +0200 Subject: [PATCH] Improved output of modes test. --- tests/modes.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/modes.c b/tests/modes.c index 98837884..da0c1662 100644 --- a/tests/modes.c +++ b/tests/modes.c @@ -97,13 +97,15 @@ static void list_modes(GLFWmonitor monitor) GLFWvidmode* modes = glfwGetVideoModes(monitor, &count); glfwGetVideoMode(monitor, &mode); - printf("Current mode: %s\n", format_mode(&mode)); - printf("Monitor %s (%ix%i mm):\n", - glfwGetMonitorString(monitor, GLFW_MONITOR_NAME), + printf("Name: %s\n", glfwGetMonitorString(monitor, GLFW_MONITOR_NAME)); + printf("Current mode: %s\n", format_mode(&mode)); + printf("Physical size: %i x %i\n", glfwGetMonitorParam(monitor, GLFW_MONITOR_PHYSICAL_WIDTH), glfwGetMonitorParam(monitor, GLFW_MONITOR_PHYSICAL_HEIGHT)); + printf("Modes:\n"); + for (i = 0; i < count; i++) { printf("%3u: %s", (unsigned int) i, format_mode(modes + i));