Fixed mingw compile errors.

This commit is contained in:
Marcel Metz
2012-01-31 23:47:01 +01:00
parent a69974403e
commit 5a16042c8a
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -229,7 +229,7 @@ int _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, GLFWvidmode* list, int ma
}
if (list && maxcount)
memcpy(list, vidModes, sizeof(GLFWvidmode) * min(vidModesCount, maxcount));
memcpy(list, vidModes, sizeof(GLFWvidmode) * ((vidModesCount < maxcount) ? vidModesCount : maxcount));
free(vidModes);