mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-22 18:28:52 -05:00
Added primary status to monitor listing.
This commit is contained in:
parent
648655aa5b
commit
3610f0d071
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue
Block a user