|
|
@ -93,11 +93,9 @@ static void key_callback(GLFWwindow* window, int key, int action) |
|
|
|
static void list_modes(GLFWmonitor* monitor) |
|
|
|
static void list_modes(GLFWmonitor* monitor) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int count, widthMM, heightMM, dpi, i; |
|
|
|
int count, widthMM, heightMM, dpi, i; |
|
|
|
GLFWvidmode mode; |
|
|
|
GLFWvidmode mode = glfwGetVideoMode(monitor); |
|
|
|
const GLFWvidmode* modes = glfwGetVideoModes(monitor, &count); |
|
|
|
const GLFWvidmode* modes = glfwGetVideoModes(monitor, &count); |
|
|
|
|
|
|
|
|
|
|
|
glfwGetVideoMode(monitor, &mode); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printf("Name: %s (%s)\n", |
|
|
|
printf("Name: %s (%s)\n", |
|
|
|
glfwGetMonitorName(monitor), |
|
|
|
glfwGetMonitorName(monitor), |
|
|
|
glfwGetPrimaryMonitor() == monitor ? "primary" : "secondary"); |
|
|
|
glfwGetPrimaryMonitor() == monitor ? "primary" : "secondary"); |
|
|
|