mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-26 20:28:49 -05:00
Removed platform-specific resources from monitor.
This commit is contained in:
parent
719b60dd2b
commit
a591cdeba6
|
@ -258,10 +258,6 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
|
|||
return monitors;
|
||||
}
|
||||
|
||||
void _glfwPlatformDestroyMonitor(_GLFWmonitor* monitor)
|
||||
{
|
||||
}
|
||||
|
||||
GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* found)
|
||||
{
|
||||
CFArrayRef modes;
|
||||
|
|
|
@ -363,10 +363,6 @@ void _glfwPlatformSetCursorMode(_GLFWwindow* window, int mode);
|
|||
*/
|
||||
_GLFWmonitor** _glfwPlatformGetMonitors(int* count);
|
||||
|
||||
/*! @ingroup platform
|
||||
*/
|
||||
void _glfwPlatformDestroyMonitor(_GLFWmonitor* monitor);
|
||||
|
||||
/*! @copydoc glfwGetVideoModes
|
||||
* @ingroup platform
|
||||
*/
|
||||
|
|
|
@ -180,8 +180,6 @@ void _glfwDestroyMonitor(_GLFWmonitor* monitor)
|
|||
if (monitor == NULL)
|
||||
return;
|
||||
|
||||
_glfwPlatformDestroyMonitor(monitor);
|
||||
|
||||
free(monitor->modes);
|
||||
free(monitor->name);
|
||||
free(monitor);
|
||||
|
|
|
@ -181,7 +181,7 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
monitors[found]->win32.name = _wcsdup(adapter.DeviceName);
|
||||
wcscpy(monitors[found]->win32.name, adapter.DeviceName);
|
||||
found++;
|
||||
}
|
||||
|
||||
|
@ -196,11 +196,6 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
|
|||
return monitors;
|
||||
}
|
||||
|
||||
void _glfwPlatformDestroyMonitor(_GLFWmonitor* monitor)
|
||||
{
|
||||
free(monitor->win32.name);
|
||||
}
|
||||
|
||||
GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* found)
|
||||
{
|
||||
int modeIndex = 0, count = 0;
|
||||
|
|
|
@ -192,7 +192,8 @@ typedef struct _GLFWlibraryWin32
|
|||
//------------------------------------------------------------------------
|
||||
typedef struct _GLFWmonitorWin32
|
||||
{
|
||||
WCHAR* name;
|
||||
// This size matches the static size of DISPLAY_DEVICE.DeviceName
|
||||
WCHAR name[32];
|
||||
|
||||
} _GLFWmonitorWin32;
|
||||
|
||||
|
|
|
@ -239,10 +239,6 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* found)
|
|||
return monitors;
|
||||
}
|
||||
|
||||
void _glfwPlatformDestroyMonitor(_GLFWmonitor* monitor)
|
||||
{
|
||||
}
|
||||
|
||||
GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* found)
|
||||
{
|
||||
GLFWvidmode* result;
|
||||
|
|
Loading…
Reference in New Issue
Block a user