Fixed monitor size using wrong incorrect value.

The display device string was used, instead of the adapter device name,
leading to the wrong incorrect physical size being returned for
non-primary monitors.  The right incorrect physical size is now returned
for all monitors.
This commit is contained in:
Camilla Berglund
2014-09-15 17:08:50 +02:00
parent 5bbb837635
commit 8fd69bc6c2
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
display.cb = sizeof(DISPLAY_DEVICEW);
EnumDisplayDevicesW(adapter.DeviceName, 0, &display, 0);
dc = CreateDCW(L"DISPLAY", display.DeviceString, NULL, NULL);
dc = CreateDCW(L"DISPLAY", adapter.DeviceName, NULL, NULL);
if (adapter.StateFlags & DISPLAY_DEVICE_PRIMARY_DEVICE)
primaryIndex = found;