[client,X11] fix shadowed variable

This commit is contained in:
akallabeth 2024-09-04 09:45:00 +02:00
parent 3e933203e2
commit 2fc791fe9b
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,6 @@ static BOOL xf_is_monitor_id_active(xfContext* xfc, UINT32 id)
BOOL xf_detect_monitors(xfContext* xfc, UINT32* pMaxWidth, UINT32* pMaxHeight)
{
BOOL rc = FALSE;
int nmonitors = 0;
UINT32 monitor_index = 0;
BOOL primaryMonitorFound = FALSE;
VIRTUAL_SCREEN* vscreen = NULL;
@ -384,6 +383,7 @@ BOOL xf_detect_monitors(xfContext* xfc, UINT32* pMaxWidth, UINT32* pMaxHeight)
/* Create array of all active monitors by taking into account monitors requested on the
* command-line */
int nmonitors = 0;
{
UINT32 nr = 0;