mirror of
https://github.com/glfw/glfw.git
synced 2024-11-15 02:34:36 +00:00
ISO C90 - Mixed declaration and code
This commit is contained in:
parent
648bf7a5fb
commit
c87d0ea52b
@ -337,18 +337,21 @@ static char * GetAccurateMonitorName(const WCHAR *deviceName)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
DISPLAYCONFIG_PATH_INFO *paths;
|
DISPLAYCONFIG_PATH_INFO *paths;
|
||||||
paths = NULL;
|
|
||||||
DISPLAYCONFIG_MODE_INFO *modes;
|
DISPLAYCONFIG_MODE_INFO *modes;
|
||||||
modes = NULL;
|
|
||||||
char *retval;
|
char *retval;
|
||||||
retval = NULL;
|
|
||||||
UINT32 pathCount;
|
UINT32 pathCount;
|
||||||
pathCount = 0;
|
|
||||||
UINT32 modeCount;
|
UINT32 modeCount;
|
||||||
modeCount = 0;
|
|
||||||
UINT32 i;
|
UINT32 i;
|
||||||
LONG rc;
|
LONG rc;
|
||||||
|
|
||||||
|
paths = NULL;
|
||||||
|
modes = NULL;
|
||||||
|
retval = NULL;
|
||||||
|
pathCount = 0;
|
||||||
|
modeCount = 0;
|
||||||
|
int i = 0;
|
||||||
|
rc = 0;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
rc = dllPointers.m_GetDisplayConfigBufferSizes(QDC_ONLY_ACTIVE_PATHS, &pathCount, &modeCount);
|
rc = dllPointers.m_GetDisplayConfigBufferSizes(QDC_ONLY_ACTIVE_PATHS, &pathCount, &modeCount);
|
||||||
if (rc != ERROR_SUCCESS) {
|
if (rc != ERROR_SUCCESS) {
|
||||||
|
Loading…
Reference in New Issue
Block a user