mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 21:14:35 +00:00
Formatting.
This commit is contained in:
parent
fa4f6b43f6
commit
c83b336a4c
@ -32,16 +32,13 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <wchar.h>
|
|
||||||
|
|
||||||
// The MinGW package for Debian lacks this
|
// These constants are missing on MinGW
|
||||||
#ifndef EDS_ROTATEDMODE
|
#ifndef EDS_ROTATEDMODE
|
||||||
#define EDS_ROTATEDMODE 0x00000004
|
#define EDS_ROTATEDMODE 0x00000004
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// The MinGW upstream lacks this
|
|
||||||
#ifndef DISPLAY_DEVICE_ACTIVE
|
#ifndef DISPLAY_DEVICE_ACTIVE
|
||||||
#define DISPLAY_DEVICE_ACTIVE 0x00000001
|
#define DISPLAY_DEVICE_ACTIVE 0x00000001
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -91,6 +88,8 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
|
|||||||
if (!EnumDisplayDevices(adapter.DeviceName, monitorIndex, &monitor, 0))
|
if (!EnumDisplayDevices(adapter.DeviceName, monitorIndex, &monitor, 0))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
monitorIndex++;
|
||||||
|
|
||||||
ZeroMemory(&settings, sizeof(DEVMODE));
|
ZeroMemory(&settings, sizeof(DEVMODE));
|
||||||
settings.dmSize = sizeof(DEVMODE);
|
settings.dmSize = sizeof(DEVMODE);
|
||||||
|
|
||||||
@ -138,9 +137,7 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
|
|||||||
}
|
}
|
||||||
|
|
||||||
monitors[found]->Win32.name = wcsdup(monitor.DeviceName);
|
monitors[found]->Win32.name = wcsdup(monitor.DeviceName);
|
||||||
|
|
||||||
found++;
|
found++;
|
||||||
monitorIndex++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -214,6 +214,7 @@ typedef struct _GLFWlibraryWin32
|
|||||||
|
|
||||||
} _GLFWlibraryWin32;
|
} _GLFWlibraryWin32;
|
||||||
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
// Platform-specific monitor structure
|
// Platform-specific monitor structure
|
||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
@ -223,6 +224,7 @@ typedef struct _GLFWmonitorWin32
|
|||||||
|
|
||||||
} _GLFWmonitorWin32;
|
} _GLFWmonitorWin32;
|
||||||
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
// Platform-specific library global data for WGL
|
// Platform-specific library global data for WGL
|
||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
|
@ -92,7 +92,6 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
|
|||||||
|
|
||||||
// This is retained until the monitor object is destroyed
|
// This is retained until the monitor object is destroyed
|
||||||
monitors[found]->X11.output = oi;
|
monitors[found]->X11.output = oi;
|
||||||
|
|
||||||
found++;
|
found++;
|
||||||
}
|
}
|
||||||
#endif /*_GLFW_HAS_XRANDR*/
|
#endif /*_GLFW_HAS_XRANDR*/
|
||||||
|
Loading…
Reference in New Issue
Block a user