Renamed compare video modes function to internal interface conventions.
This commit is contained in:
parent
beacbb3447
commit
4634c334ea
@ -37,7 +37,7 @@
|
|||||||
// Lexical comparison function for GLFW video modes, used by qsort
|
// 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;
|
int firstBPP, secondBPP, firstSize, secondSize;
|
||||||
GLFWvidmode* first = (GLFWvidmode*) firstPtr;
|
GLFWvidmode* first = (GLFWvidmode*) firstPtr;
|
||||||
@ -118,7 +118,7 @@ GLFWAPI int glfwGetVideoModes(GLFWdisplay display, GLFWvidmode* list, int maxcou
|
|||||||
|
|
||||||
count = _glfwPlatformGetVideoModes(list, maxcount);
|
count = _glfwPlatformGetVideoModes(list, maxcount);
|
||||||
if (count > 0)
|
if (count > 0)
|
||||||
qsort(list, count, sizeof(GLFWvidmode), compareVideoModes);
|
qsort(list, count, sizeof(GLFWvidmode), _glfwCompareVideoModes);
|
||||||
|
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user