From d21e79642b57e8f60dd0768d5e2e2fc83c7dc9ce Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 13 Sep 2012 16:47:59 +0200 Subject: [PATCH] Added output of monitor position. --- tests/modes.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/modes.c b/tests/modes.c index ff5ba3e3..1dbc3d52 100644 --- a/tests/modes.c +++ b/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));