Null: Fix out parameters not being set

It turns out platform functions are sometimes called directly instead of
going through the public wrapper.
This commit is contained in:
Camilla Löwy
2020-08-19 19:30:00 +02:00
parent da26eefc61
commit cd0dc76c7c
2 changed files with 23 additions and 4 deletions

View File

@@ -72,6 +72,10 @@ void _glfwPlatformFreeMonitor(_GLFWmonitor* monitor)
void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos)
{
if (xpos)
*xpos = 0;
if (ypos)
*ypos = 0;
}
void _glfwPlatformGetMonitorContentScale(_GLFWmonitor* monitor,