@ -535,6 +535,13 @@ GLFWAPI const char* glfwGetWin32Adapter(GLFWmonitor* handle)
{
{
_GLFWmonitor * monitor = ( _GLFWmonitor * ) handle ;
_GLFWmonitor * monitor = ( _GLFWmonitor * ) handle ;
_GLFW_REQUIRE_INIT_OR_RETURN ( NULL ) ;
_GLFW_REQUIRE_INIT_OR_RETURN ( NULL ) ;
if ( _glfw . platform . platformID ! = GLFW_PLATFORM_WIN32 )
{
_glfwInputError ( GLFW_PLATFORM_UNAVAILABLE , " Win32: Platform not initialized " ) ;
return NULL ;
}
return monitor - > win32 . publicAdapterName ;
return monitor - > win32 . publicAdapterName ;
}
}
@ -542,6 +549,13 @@ GLFWAPI const char* glfwGetWin32Monitor(GLFWmonitor* handle)
{
{
_GLFWmonitor * monitor = ( _GLFWmonitor * ) handle ;
_GLFWmonitor * monitor = ( _GLFWmonitor * ) handle ;
_GLFW_REQUIRE_INIT_OR_RETURN ( NULL ) ;
_GLFW_REQUIRE_INIT_OR_RETURN ( NULL ) ;
if ( _glfw . platform . platformID ! = GLFW_PLATFORM_WIN32 )
{
_glfwInputError ( GLFW_PLATFORM_UNAVAILABLE , " Win32: Platform not initialized " ) ;
return NULL ;
}
return monitor - > win32 . publicDisplayName ;
return monitor - > win32 . publicDisplayName ;
}
}