From 94f5b28152a80d99881bccc6d63f49f6f951872f Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 14 Feb 2013 17:22:22 +0100 Subject: [PATCH] Made reopen test pick a monitor at random. --- tests/reopen.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/reopen.c b/tests/reopen.c index 0ba54982..61356255 100644 --- a/tests/reopen.c +++ b/tests/reopen.c @@ -120,7 +120,11 @@ int main(int argc, char** argv) GLFWmonitor* monitor = NULL; if (count & 1) - monitor = glfwGetPrimaryMonitor(); + { + int monitorCount; + GLFWmonitor** monitors = glfwGetMonitors(&monitorCount); + monitor = monitors[rand() % monitorCount]; + } if (!open_window(640, 480, monitor)) {