1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-27 04:28:52 -05:00

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;
}