Преглед на файлове

Added primary status to monitor listing.

Camilla Berglund преди 12 години
родител
ревизия
3610f0d071
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      tests/modes.c

+ 3 - 1
tests/modes.c

@@ -98,7 +98,9 @@ static void list_modes(GLFWmonitor monitor)
 
 
     glfwGetVideoMode(monitor, &mode);
     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("Current mode: %s\n", format_mode(&mode));
     printf("Virtual position: %i %i\n",
     printf("Virtual position: %i %i\n",
            glfwGetMonitorParam(monitor, GLFW_MONITOR_POS_X),
            glfwGetMonitorParam(monitor, GLFW_MONITOR_POS_X),