aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/winmonitors.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/hw/xwin/winmonitors.c')
-rw-r--r--xorg-server/hw/xwin/winmonitors.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xorg-server/hw/xwin/winmonitors.c b/xorg-server/hw/xwin/winmonitors.c
index ab8842a32..916b8b0bb 100644
--- a/xorg-server/hw/xwin/winmonitors.c
+++ b/xorg-server/hw/xwin/winmonitors.c
@@ -30,6 +30,7 @@ from The Open Group.
#ifdef HAVE_XWIN_CONFIG_H
#include <xwin-config.h>
#endif
+
#include "win.h"
#define COMPILE_MULTIMON_STUBS
#include <multimon.h>
@@ -60,13 +61,13 @@ getMonitorInfo(HMONITOR hMonitor, HDC hdc, LPRECT rect, LPARAM _data)
}
Bool
-QueryMonitor(int index, struct GetMonitorInfoData *data)
+QueryMonitor(int i, struct GetMonitorInfoData *data)
{
/* prepare data */
if (data == NULL)
return FALSE;
memset(data, 0, sizeof(*data));
- data->requestedMonitor = index;
+ data->requestedMonitor = i;
/* query information */
return !EnumDisplayMonitors(NULL, NULL, getMonitorInfo, (LPARAM) data);