Renamed compare video modes function to internal interface conventions.

This commit is contained in:
Marcel Metz 2011-10-01 10:42:07 -04:00
parent beacbb3447
commit 4634c334ea

View File

@ -37,7 +37,7 @@
// Lexical comparison function for GLFW video modes, used by qsort
//========================================================================
static int compareVideoModes(const void* firstPtr, const void* secondPtr)
int _glfwCompareVideoModes(const void* firstPtr, const void* secondPtr)
{
int firstBPP, secondBPP, firstSize, secondSize;
GLFWvidmode* first = (GLFWvidmode*) firstPtr;
@ -118,7 +118,7 @@ GLFWAPI int glfwGetVideoModes(GLFWdisplay display, GLFWvidmode* list, int maxcou
count = _glfwPlatformGetVideoModes(list, maxcount);
if (count > 0)
qsort(list, count, sizeof(GLFWvidmode), compareVideoModes);
qsort(list, count, sizeof(GLFWvidmode), _glfwCompareVideoModes);
return count;
}