Renamed glfwGetMonitorString to glfwGetMonitorName.

This commit is contained in:
Camilla Berglund
2012-10-18 23:01:41 +02:00
parent c1bb1d8a6e
commit da31167193
5 changed files with 7 additions and 16 deletions
+2 -10
View File
@@ -334,7 +334,7 @@ GLFWAPI int glfwGetMonitorParam(GLFWmonitor handle, int param)
// Get monitor string
//========================================================================
GLFWAPI const char* glfwGetMonitorString(GLFWmonitor handle, int param)
GLFWAPI const char* glfwGetMonitorName(GLFWmonitor handle)
{
_GLFWmonitor* monitor = (_GLFWmonitor*) handle;
@@ -351,15 +351,7 @@ GLFWAPI const char* glfwGetMonitorString(GLFWmonitor handle, int param)
return NULL;
}
switch (param)
{
case GLFW_MONITOR_NAME:
return monitor->name;
}
_glfwSetError(GLFW_INVALID_ENUM,
"glfwGetMonitorString: Invalid enum value for 'param' parameter");
return NULL;
return monitor->name;
}