Renamed monitor helper functions for clarity.

This commit is contained in:
Camilla Berglund
2014-01-21 15:23:11 +01:00
parent beb7e5909f
commit 0548c713e8
6 changed files with 22 additions and 22 deletions
+2 -2
View File
@@ -148,7 +148,7 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
name = _glfwCreateUTF8FromWideString(display.DeviceString);
if (!name)
{
_glfwDestroyMonitors(monitors, found);
_glfwFreeMonitors(monitors, found);
_glfwInputError(GLFW_PLATFORM_ERROR,
"Failed to convert string to UTF-8");
@@ -156,7 +156,7 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
return NULL;
}
monitors[found] = _glfwCreateMonitor(name,
monitors[found] = _glfwAllocMonitor(name,
GetDeviceCaps(dc, HORZSIZE),
GetDeviceCaps(dc, VERTSIZE));