mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Allow zero windows for events test
glfwWaitEvents is sane now, yay.
This commit is contained in:
parent
b41cd34143
commit
7f4dde15e4
@ -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…
Reference in New Issue
Block a user