From 3610f0d071679dbf5ea8ec3c577be359d33b4495 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sat, 22 Dec 2012 23:37:42 +0100 Subject: [PATCH] Added primary status to monitor listing. --- tests/modes.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/modes.c b/tests/modes.c index 8a260eaf..ccf43327 100644 --- a/tests/modes.c +++ b/tests/modes.c @@ -98,7 +98,9 @@ static void list_modes(GLFWmonitor monitor) glfwGetVideoMode(monitor, &mode); - printf("Name: %s\n", glfwGetMonitorName(monitor)); + printf("Name: %s (%s)\n", + glfwGetMonitorName(monitor), + glfwGetPrimaryMonitor() == monitor ? "primary" : "secondary"); printf("Current mode: %s\n", format_mode(&mode)); printf("Virtual position: %i %i\n", glfwGetMonitorParam(monitor, GLFW_MONITOR_POS_X),