Tweak WindowDropCallback()
#2943
This commit is contained in:
parent
aae7ab64c7
commit
cf1ebada0e
1 changed files with 17 additions and 14 deletions
|
@ -5597,6 +5597,8 @@ static void CursorEnterCallback(GLFWwindow *window, int enter)
|
||||||
|
|
||||||
// GLFW3 Window Drop Callback, runs when drop files into window
|
// GLFW3 Window Drop Callback, runs when drop files into window
|
||||||
static void WindowDropCallback(GLFWwindow *window, int count, const char **paths)
|
static void WindowDropCallback(GLFWwindow *window, int count, const char **paths)
|
||||||
|
{
|
||||||
|
if (count > 0)
|
||||||
{
|
{
|
||||||
// In case previous dropped filepaths have not been freed, we free them
|
// In case previous dropped filepaths have not been freed, we free them
|
||||||
if (CORE.Window.dropFileCount > 0)
|
if (CORE.Window.dropFileCount > 0)
|
||||||
|
@ -5619,6 +5621,7 @@ static void WindowDropCallback(GLFWwindow *window, int count, const char **paths
|
||||||
strcpy(CORE.Window.dropFilepaths[i], paths[i]);
|
strcpy(CORE.Window.dropFilepaths[i], paths[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PLATFORM_ANDROID)
|
#if defined(PLATFORM_ANDROID)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue