mirror of
https://github.com/glfw/glfw.git
synced 2026-09-17 22:32:50 +00:00
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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user