mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 00:30:57 +00:00
Win32 Unicode fixes.
This commit is contained in:
@@ -199,7 +199,15 @@ int _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, GLFWvidmode* list, int ma
|
||||
|
||||
for (;;)
|
||||
{
|
||||
if (!EnumDisplaySettings(monitor->Win32.name, deviceModeNum, &deviceMode))
|
||||
BOOL result;
|
||||
WCHAR* wideName = _glfwCreateWideStringFromUTF8(monitor->Win32.name);
|
||||
if (!wideName)
|
||||
break;
|
||||
|
||||
result = EnumDisplaySettings(wideName, deviceModeNum, &deviceMode);
|
||||
free(wideName);
|
||||
|
||||
if (!result)
|
||||
break;
|
||||
|
||||
if (vidModesCount >= maxcount)
|
||||
|
||||
Reference in New Issue
Block a user