mirror of
https://github.com/glfw/glfw.git
synced 2024-11-14 18:34:34 +00:00
ISO C90 - Mixed declaration and code.
This commit is contained in:
parent
6404b1bba4
commit
648bf7a5fb
@ -425,6 +425,8 @@ static BOOL CALLBACK monitorCallback(HMONITOR handle,
|
||||
LPARAM data)
|
||||
{
|
||||
MONITORINFOEXW mi;
|
||||
char *possiblyMoreAccurateMonitorName = NULL;
|
||||
|
||||
ZeroMemory(&mi, sizeof(mi));
|
||||
mi.cbSize = sizeof(mi);
|
||||
|
||||
@ -434,7 +436,6 @@ static BOOL CALLBACK monitorCallback(HMONITOR handle,
|
||||
if (wcscmp(mi.szDevice, monitor->win32.adapterName) == 0)
|
||||
{
|
||||
monitor->win32.handle = handle;
|
||||
char *possiblyMoreAccurateMonitorName;
|
||||
possiblyMoreAccurateMonitorName = GetAccurateMonitorName(mi.szDevice);
|
||||
if(possiblyMoreAccurateMonitorName != NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user