Made glfwGetVideoMode return a GLFWvidmode.

This commit is contained in:
Camilla Berglund
2013-01-05 22:07:06 +01:00
parent 9af960e2dd
commit 316ee1d77d
6 changed files with 10 additions and 19 deletions

View File

@@ -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");