Made reopen test pick a monitor at random.

master
Camilla Berglund ago%!(EXTRA string=12 years)
parent b6926b1836
commit 94f5b28152
  1. 6
      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))
{

Loading…
Cancel
Save