mirror of
https://github.com/glfw/glfw.git
synced 2024-11-14 18:34:34 +00:00
Bugfix: Fix skipping monitor handle assignation when monitor name was not generic
Found the issue why fullscreen was not working
This commit is contained in:
parent
71dfe1fc45
commit
99ed2a3d22
@ -202,11 +202,12 @@ static BOOL CALLBACK monitorCallback(HMONITOR handle,
|
|||||||
if (wcscmp(mi.szDevice, monitor->win32.adapterName) != 0)
|
if (wcscmp(mi.szDevice, monitor->win32.adapterName) != 0)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
monitor->win32.handle = handle;
|
||||||
|
|
||||||
// If the monitor driver is installed, we will already have an accurate name for the monitor.
|
// If the monitor driver is installed, we will already have an accurate name for the monitor.
|
||||||
if (strcmp(monitor->name, "Generic PnP Monitor") != 0)
|
if (strcmp(monitor->name, "Generic PnP Monitor") != 0)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
monitor->win32.handle = handle;
|
|
||||||
accurateMonitorName = tryGetAccurateMonitorName(mi.szDevice);
|
accurateMonitorName = tryGetAccurateMonitorName(mi.szDevice);
|
||||||
if(accurateMonitorName != NULL)
|
if(accurateMonitorName != NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user