mirror of
https://github.com/glfw/glfw.git
synced 2026-08-28 05:05:53 +02:00
Made glfwGetVideoMode return a GLFWvidmode.
This commit is contained in:
@@ -93,11 +93,9 @@ static void key_callback(GLFWwindow* window, int key, int action)
|
||||
static void list_modes(GLFWmonitor* monitor)
|
||||
{
|
||||
int count, widthMM, heightMM, dpi, i;
|
||||
GLFWvidmode mode;
|
||||
GLFWvidmode mode = glfwGetVideoMode(monitor);
|
||||
const GLFWvidmode* modes = glfwGetVideoModes(monitor, &count);
|
||||
|
||||
glfwGetVideoMode(monitor, &mode);
|
||||
|
||||
printf("Name: %s (%s)\n",
|
||||
glfwGetMonitorName(monitor),
|
||||
glfwGetPrimaryMonitor() == monitor ? "primary" : "secondary");
|
||||
|
||||
Reference in New Issue
Block a user