Allow zero windows for events test

glfwWaitEvents is sane now, yay.
This commit is contained in:
Camilla Löwy 2019-01-25 12:14:23 +01:00
parent b41cd34143
commit 7f4dde15e4

View File

@ -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++)