mirror of
https://github.com/glfw/glfw.git
synced 2024-11-14 18:34:34 +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)
|
||||
{
|
||||
monitor->win32.handle = handle;
|
||||
char *possibleBetterDisplayName = GetAccurateMonitorName(mi.szDevice);
|
||||
if(possibleBetterDisplayName != NULL)
|
||||
char *possiblyMoreAccurateMonitorName = GetAccurateMonitorName(mi.szDevice);
|
||||
if(possiblyMoreAccurateMonitorName != NULL)
|
||||
{
|
||||
strncpy(monitor->name, possibleBetterDisplayName, sizeof(monitor->name) - 1);
|
||||
free(possibleBetterDisplayName);
|
||||
possibleBetterDisplayName = NULL;
|
||||
strncpy(monitor->name, possiblyMoreAccurateMonitorName, sizeof(monitor->name) - 1);
|
||||
free(possiblyMoreAccurateMonitorName);
|
||||
possiblyMoreAccurateMonitorName = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user