Moved to Win32 monitor device string for public name.
diff --git a/src/win32_monitor.c b/src/win32_monitor.c
index 84ff128..3283db7 100644
--- a/src/win32_monitor.c
+++ b/src/win32_monitor.c
@@ -140,13 +140,6 @@
&settings,
EDS_ROTATEDMODE);
- name = _glfwCreateUTF8FromWideString(adapter.DeviceName);
- if (!name)
- {
- // TODO: wat
- return NULL;
- }
-
if (found == size)
{
if (size)
@@ -170,6 +163,13 @@
primary = adapter.StateFlags & DISPLAY_DEVICE_PRIMARY_DEVICE;
+ name = _glfwCreateUTF8FromWideString(monitor.DeviceString);
+ if (!name)
+ {
+ // TODO: wat
+ return NULL;
+ }
+
monitors[found] = _glfwCreateMonitor(name, primary,
GetDeviceCaps(dc, HORZSIZE),
GetDeviceCaps(dc, VERTSIZE),