mirror of
https://github.com/glfw/glfw.git
synced 2024-11-14 06:23:50 +00:00
Moved to Win32 monitor device string for public name.
This commit is contained in:
parent
cbb6d1ad7b
commit
b872089fa9
@ -140,13 +140,6 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
|
|||||||
&settings,
|
&settings,
|
||||||
EDS_ROTATEDMODE);
|
EDS_ROTATEDMODE);
|
||||||
|
|
||||||
name = _glfwCreateUTF8FromWideString(adapter.DeviceName);
|
|
||||||
if (!name)
|
|
||||||
{
|
|
||||||
// TODO: wat
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (found == size)
|
if (found == size)
|
||||||
{
|
{
|
||||||
if (size)
|
if (size)
|
||||||
@ -170,6 +163,13 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
|
|||||||
|
|
||||||
primary = adapter.StateFlags & DISPLAY_DEVICE_PRIMARY_DEVICE;
|
primary = adapter.StateFlags & DISPLAY_DEVICE_PRIMARY_DEVICE;
|
||||||
|
|
||||||
|
name = _glfwCreateUTF8FromWideString(monitor.DeviceString);
|
||||||
|
if (!name)
|
||||||
|
{
|
||||||
|
// TODO: wat
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
monitors[found] = _glfwCreateMonitor(name, primary,
|
monitors[found] = _glfwCreateMonitor(name, primary,
|
||||||
GetDeviceCaps(dc, HORZSIZE),
|
GetDeviceCaps(dc, HORZSIZE),
|
||||||
GetDeviceCaps(dc, VERTSIZE),
|
GetDeviceCaps(dc, VERTSIZE),
|
||||||
|
Loading…
Reference in New Issue
Block a user