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
+1 -2
View File
@@ -346,8 +346,7 @@ void monitor_callback(GLFWmonitor* monitor, int event)
{
if (event == GLFW_CONNECTED)
{
GLFWvidmode mode;
glfwGetVideoMode(monitor, &mode);
GLFWvidmode mode = glfwGetVideoMode(monitor);
printf("%08x at %0.3f: Monitor %s (%ix%i at %ix%i, %ix%i mm) was connected\n",
counter++,