monitors.push_back(Monitor());
Monitor &monitor = monitors.back();
monitor.index = monitors.size()-1;
- monitor.name = adapter_dev.DeviceString;
priv->monitors.push_back(adapter_dev.DeviceName);
+ DISPLAY_DEVICE monitor_dev;
+ monitor_dev.cb = sizeof(monitor_dev);
+ if(EnumDisplayDevices(adapter_dev.DeviceName, 0, &monitor_dev, 0))
+ monitor.name = monitor_dev.DeviceString;
+
if(adapter_dev.StateFlags&DISPLAY_DEVICE_PRIMARY_DEVICE)
primary_index = i;