mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 10:48:51 -05:00
parent
754536404e
commit
04b4e605a0
|
@ -701,13 +701,14 @@ static int translateKey(unsigned int key)
|
||||||
{
|
{
|
||||||
NSEnumerator* e = [files objectEnumerator];
|
NSEnumerator* e = [files objectEnumerator];
|
||||||
char** names = calloc(count, sizeof(char*));
|
char** names = calloc(count, sizeof(char*));
|
||||||
|
int i;
|
||||||
|
|
||||||
for (int i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
names[i] = strdup([[e nextObject] UTF8String]);
|
names[i] = strdup([[e nextObject] UTF8String]);
|
||||||
|
|
||||||
_glfwInputDrop(window, count, (const char**) names);
|
_glfwInputDrop(window, count, (const char**) names);
|
||||||
|
|
||||||
for (int i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
free(names[i]);
|
free(names[i]);
|
||||||
free(names);
|
free(names);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user