mirror of
https://github.com/glfw/glfw.git
synced 2024-11-15 02:34:36 +00:00
Rename variable to better reflect its purpose
This commit is contained in:
parent
7cd353f3af
commit
f1ee946007
@ -429,12 +429,12 @@ static BOOL CALLBACK monitorCallback(HMONITOR handle,
|
|||||||
if (wcscmp(mi.szDevice, monitor->win32.adapterName) == 0)
|
if (wcscmp(mi.szDevice, monitor->win32.adapterName) == 0)
|
||||||
{
|
{
|
||||||
monitor->win32.handle = handle;
|
monitor->win32.handle = handle;
|
||||||
char *possibleBetterDisplayName = GetAccurateMonitorName(mi.szDevice);
|
char *possiblyMoreAccurateMonitorName = GetAccurateMonitorName(mi.szDevice);
|
||||||
if(possibleBetterDisplayName != NULL)
|
if(possiblyMoreAccurateMonitorName != NULL)
|
||||||
{
|
{
|
||||||
strncpy(monitor->name, possibleBetterDisplayName, sizeof(monitor->name) - 1);
|
strncpy(monitor->name, possiblyMoreAccurateMonitorName, sizeof(monitor->name) - 1);
|
||||||
free(possibleBetterDisplayName);
|
free(possiblyMoreAccurateMonitorName);
|
||||||
possibleBetterDisplayName = NULL;
|
possiblyMoreAccurateMonitorName = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user