Allow zero windows for events test

glfwWaitEvents is sane now, yay.
master
Camilla Löwy ago%!(EXTRA string=6 years)
parent b41cd34143
commit 7f4dde15e4
  1. 8
      tests/events.c

@ -524,7 +524,7 @@ int main(int argc, char** argv)
break;
case 'n':
count = (int) strtol(optarg, NULL, 10);
count = (int) strtoul(optarg, NULL, 10);
break;
default:
@ -551,12 +551,6 @@ int main(int argc, char** argv)
height = 480;
}
if (!count)
{
fprintf(stderr, "Invalid user\n");
exit(EXIT_FAILURE);
}
slots = calloc(count, sizeof(Slot));
for (i = 0; i < count; i++)

Loading…
Cancel
Save