mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 06:14:35 +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;
|
break;
|
||||||
|
|
||||||
case 'n':
|
case 'n':
|
||||||
count = (int) strtol(optarg, NULL, 10);
|
count = (int) strtoul(optarg, NULL, 10);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -551,12 +551,6 @@ int main(int argc, char** argv)
|
|||||||
height = 480;
|
height = 480;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!count)
|
|
||||||
{
|
|
||||||
fprintf(stderr, "Invalid user\n");
|
|
||||||
exit(EXIT_FAILURE);
|
|
||||||
}
|
|
||||||
|
|
||||||
slots = calloc(count, sizeof(Slot));
|
slots = calloc(count, sizeof(Slot));
|
||||||
|
|
||||||
for (i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user