Made glfwGetVideoMode consistent with getters.

This commit is contained in:
Camilla Berglund
2013-05-22 22:16:43 +02:00
parent 5d308db654
commit ce1e84def6
7 changed files with 18 additions and 19 deletions

View File

@@ -117,9 +117,9 @@ int main(int argc, char** argv)
if (monitor)
{
GLFWvidmode mode = glfwGetVideoMode(monitor);
width = mode.width;
height = mode.height;
const GLFWvidmode* mode = glfwGetVideoMode(monitor);
width = mode->width;
height = mode->height;
}
else
{